Fixes
This commit is contained in:
@@ -52,7 +52,7 @@ class TestACAuthenticator(TestCase):
|
||||
authenticator = ACAuthenticator(AC_LOGIN_BASE_URL)
|
||||
response = authenticator.login_with_check(email, password)
|
||||
|
||||
self.assertEquals(200, response.status_code)
|
||||
self.assertEqual(200, response.status_code)
|
||||
res_data = response.json()
|
||||
self.assertEqual(1, res_data['is_ok'])
|
||||
user = res_data["user"]
|
||||
@@ -71,7 +71,7 @@ class TestACAuthenticator(TestCase):
|
||||
email = "collab@example.com"
|
||||
password = "VeryS3cret!"
|
||||
authenticator = ACAuthenticator(AC_LOGIN_BASE_URL)
|
||||
response = authenticator.login_with_check(email, password)
|
||||
authenticator.login_with_check(email, password)
|
||||
|
||||
def test_login_failed_not_ok(self):
|
||||
with self.assertRaises(Exception) as exc:
|
||||
@@ -82,4 +82,4 @@ class TestACAuthenticator(TestCase):
|
||||
email = "collab@example.com"
|
||||
password = "VeryS3cret!"
|
||||
authenticator = ACAuthenticator(AC_LOGIN_BASE_URL)
|
||||
response = authenticator.login_with_check(email, password)
|
||||
authenticator.login_with_check(email, password)
|
||||
|
||||
Reference in New Issue
Block a user