Skip to content

Commit 6a0910c

Browse files
committed
tests: stop using assertNotEquals
1 parent 93cbf44 commit 6a0910c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_handlers(self):
150150
result = run(
151151
"handlers/handlers_certs.py --ca_file=handlers/cacert.bad.pem",
152152
stderr=PIPE)
153-
self.assertNotEquals(result, 0)
153+
self.assertNotEqual(result, 0)
154154

155155
# The proxy handler example requires that there be a proxy available
156156
# to relay requests, so we spin up a local proxy using the proxy
@@ -171,7 +171,7 @@ def test_handlers(self):
171171
# Run it again without the proxy and it should fail.
172172
result = run(
173173
"handlers/handler_proxy.py --proxy=localhost:80801", stderr=PIPE)
174-
self.assertNotEquals(result, 0)
174+
self.assertNotEqual(result, 0)
175175

176176
def test_index(self):
177177
self.check_commands(

tests/test_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_login_and_store_cookie(self):
184184
self.assertEqual(len(self.service.get_cookies()), 0)
185185
self.service.login()
186186
self.assertIsNotNone(self.service.get_cookies())
187-
self.assertNotEquals(self.service.get_cookies(), {})
187+
self.assertNotEqual(self.service.get_cookies(), {})
188188
self.assertEqual(len(self.service.get_cookies()), 1)
189189

190190
def test_login_with_cookie(self):

0 commit comments

Comments
 (0)