diff options
Diffstat (limited to 'tests/api/test_JSONBackend.py')
-rw-r--r-- | tests/api/test_JSONBackend.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/api/test_JSONBackend.py b/tests/api/test_JSONBackend.py index a3805497b..8d3373f65 100644 --- a/tests/api/test_JSONBackend.py +++ b/tests/api/test_JSONBackend.py @@ -2,6 +2,7 @@ from nose.tools import raises +from module.remote.ttypes import Forbidden from module.remote.JSONClient import JSONClient class TestJSONBackend: @@ -18,10 +19,11 @@ class TestJSONBackend: ret = self.client.login("WrongUser", "wrongpw") assert ret == False - @raises(Exception) + @raises(Forbidden) def test_access(self): self.client.getServerVersion() - @raises(Exception) + @raises(AttributeError) def test_unknown_method(self): + self.client.login("User", "test") self.client.sdfdsg() |