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