summaryrefslogtreecommitdiff
path: root/service/test/unit/bitmask_libraries/test_soledad.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/unit/bitmask_libraries/test_soledad.py')
-rw-r--r--service/test/unit/bitmask_libraries/test_soledad.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/service/test/unit/bitmask_libraries/test_soledad.py b/service/test/unit/bitmask_libraries/test_soledad.py
index 2359a652..af2cfd0a 100644
--- a/service/test/unit/bitmask_libraries/test_soledad.py
+++ b/service/test/unit/bitmask_libraries/test_soledad.py
@@ -17,7 +17,6 @@ from mock import patch
from pixelated.bitmask_libraries.soledad import SoledadSession
from pixelated.bitmask_libraries.certs import LeapCertificate
from test_abstract_leap import AbstractLeapTest
-from leap.common.events import catalog as events
class SoledadSessionTest(AbstractLeapTest):
@@ -60,19 +59,3 @@ class SoledadSessionTest(AbstractLeapTest):
# then
instance.sync.assert_called_with()
-
- @patch('pixelated.bitmask_libraries.soledad.Soledad')
- @patch('leap.common.events.client')
- def test_register_token_error_handler(self, events_mock, soledad_mock):
- instance = soledad_mock.return_value
- instance.server_url = '/foo/bar'
- register_mock = events_mock.register
- register_mock.register.return_value = None
- # when
- SoledadSession(self.provider, 'any-passphrase', self.auth.token, self.auth.uuid)
-
- # then
- used_arguments = register_mock.call_args
- self.assertIsNotNone(used_arguments)
- used_arguments = used_arguments[0]
- self.assertEqual(used_arguments[0], events.SOLEDAD_INVALID_AUTH_TOKEN)