summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/crypto/tests/test_srpauth.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-10-02 12:04:55 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-10-02 12:04:55 -0300
commit5b07b72de0843fa1665bc5ef8da988fb112bc97c (patch)
tree6e65965ea7ecdd98a090a8149da8258ee5a35fd6 /src/leap/bitmask/crypto/tests/test_srpauth.py
parent10c1eadc76b5c903feac32a6e2d113034d05cee0 (diff)
parentd74a4c3840c95e5879c89ec9d1f6d48ab54b0f55 (diff)
Merge remote-tracking branch 'chiiph/bug/login_errors' into develop
Diffstat (limited to 'src/leap/bitmask/crypto/tests/test_srpauth.py')
-rw-r--r--src/leap/bitmask/crypto/tests/test_srpauth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/bitmask/crypto/tests/test_srpauth.py b/src/leap/bitmask/crypto/tests/test_srpauth.py
index 6fb2b739..0cb8e79a 100644
--- a/src/leap/bitmask/crypto/tests/test_srpauth.py
+++ b/src/leap/bitmask/crypto/tests/test_srpauth.py
@@ -246,7 +246,7 @@ class SRPAuthTestCase(unittest.TestCase):
d = self._prepare_auth_test(422)
def wrapper(_):
- with self.assertRaises(srpauth.SRPAuthUnknownUser):
+ with self.assertRaises(srpauth.SRPAuthBadUserOrPassword):
with mock.patch(
'leap.bitmask.util.request_helpers.get_content',
new=mock.create_autospec(get_content)) as content:
@@ -425,7 +425,7 @@ class SRPAuthTestCase(unittest.TestCase):
new=mock.create_autospec(get_content)) as \
content:
content.return_value = ("", 0)
- with self.assertRaises(srpauth.SRPAuthBadPassword):
+ with self.assertRaises(srpauth.SRPAuthBadUserOrPassword):
self.auth_backend._process_challenge(
salt_B,
username=self.TEST_USER)
@@ -449,7 +449,7 @@ class SRPAuthTestCase(unittest.TestCase):
new=mock.create_autospec(get_content)) as \
content:
content.return_value = ("[]", 0)
- with self.assertRaises(srpauth.SRPAuthBadPassword):
+ with self.assertRaises(srpauth.SRPAuthBadUserOrPassword):
self.auth_backend._process_challenge(
salt_B,
username=self.TEST_USER)