summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2016-02-09 14:18:34 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2016-02-09 14:18:34 +0100
commitea37d34ad558227af21b3c5ecd6f1d2fdb80b784 (patch)
tree51f180bae3213b653bd96d5303ae13302add6d51 /service
parentb7943d436702c2bf6551ccceded94eff8638eae1 (diff)
Small fix to wrap entire KeyManager in test_nicknym.py
Diffstat (limited to 'service')
-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,