summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler/test_handler_apt_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_handler/test_handler_apt_source.py')
-rw-r--r--tests/unittests/test_handler/test_handler_apt_source.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_source.py b/tests/unittests/test_handler/test_handler_apt_source.py
index 0b2aa9e5..9aa6ff71 100644
--- a/tests/unittests/test_handler/test_handler_apt_source.py
+++ b/tests/unittests/test_handler/test_handler_apt_source.py
@@ -473,13 +473,9 @@ class TestAptSourceConfig(TestCase):
with mock.patch.object(cc_apt_configure, 'add_apt_key_raw') as mockkey:
with mock.patch.object(util, 'gpg_recv_key',
- side_effect=fake_gpg_recv_key) as mockrecv:
+ side_effect=fake_gpg_recv_key):
cc_apt_configure.add_apt_sources([cfg], params)
- # since we might mock the recv path ensure it is called right
- mockrecv.assert_called_with(cfg['keyid'],
- keyserver=cfg.get('keyserver',
- 'keyserver.ubuntu.com'))
# no matter if really imported or faked, ensure we add the right key
mockkey.assert_called_with(expectedkey)