Skip to content

Commit

Permalink
Rename test variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Garrelou committed Aug 28, 2020
1 parent 8a40520 commit 1a3f73a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_session_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

class SessionCookiesTest(base.TestCase):
def test_cookie(self):
with requests_mock.Mocker() as m:
m.get("mock://test.site", text="hello", cookies={"name": "value"})
with requests_mock.Mocker() as mocker:
mocker.get("mock://test.site", text="hello", cookies={"name": "value"})

with requests.Session() as s:
r = s.get("mock://test.site")
with requests.Session() as session:
resp = session.get("mock://test.site")

self.assertEquals(r.cookies.get("name"), "value")
self.assertEquals(s.cookies.get("name"), "value")
self.assertEquals(resp.cookies.get("name"), "value")
self.assertEquals(session.cookies.get("name"), "value")

0 comments on commit 1a3f73a

Please sign in to comment.