summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/leap/crypto/tests/fake_provider.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/crypto/tests/fake_provider.py b/src/leap/crypto/tests/fake_provider.py
index 74a735ff..b943040a 100755
--- a/src/leap/crypto/tests/fake_provider.py
+++ b/src/leap/crypto/tests/fake_provider.py
@@ -139,6 +139,7 @@ class FakeUsers(Resource):
verifier = args['user[password_verifier]'][0]
if login in _USERDB:
+ request.setResponseCode(422)
return "%s\n" % json.dumps(
{'errors': {'login': 'already taken!'}})