summaryrefslogtreecommitdiff
path: root/service/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/unit')
-rw-r--r--service/test/unit/bitmask_libraries/test_nicknym.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/service/test/unit/bitmask_libraries/test_nicknym.py b/service/test/unit/bitmask_libraries/test_nicknym.py
index 13e61a0a..e75bc913 100644
--- a/service/test/unit/bitmask_libraries/test_nicknym.py
+++ b/service/test/unit/bitmask_libraries/test_nicknym.py
@@ -22,8 +22,9 @@ from pixelated.bitmask_libraries.certs import LeapCertificate
class NickNymTest(AbstractLeapTest):
- @patch('pixelated.bitmask_libraries.nicknym.KeyManager.__init__', return_value=None)
- def test_that_keymanager_is_created(self, keymanager_init_mock):
+ # @patch('pixelated.bitmask_libraries.nicknym.KeyManager.__init__', return_value=None)
+ @patch('pixelated.bitmask_libraries.nicknym.KeyManager')
+ def test_that_keymanager_is_created(self, keymanager_mock):
# given
LeapCertificate.provider_api_cert = '/some/path/to/provider_ca_cert'
# when
@@ -35,7 +36,7 @@ class NickNymTest(AbstractLeapTest):
self.auth.uuid)
# then
- keymanager_init_mock.assert_called_with(
+ keymanager_mock.assert_called_with(
'test_user@some-server.test',
'https://nicknym.some-server.test:6425/',
self.soledad,