diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-06-06 15:14:34 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-06-06 15:14:34 +0200 |
commit | 9874eff179410d1cf48c7a02623c3b6bda545344 (patch) | |
tree | 85869e33354f97829c4d27c5b53271403826e334 /tests/unittests/test_handler/test_handler_apt_source.py | |
parent | 01c47d9f3366a1535fbd50bd7be8f4e51f3f3b4b (diff) | |
download | vyos-cloud-init-9874eff179410d1cf48c7a02623c3b6bda545344.tar.gz vyos-cloud-init-9874eff179410d1cf48c7a02623c3b6bda545344.zip |
remove check that fails if user has installed tested keys
The overall check for the expected key is a superset and would spot an issue.
Diffstat (limited to 'tests/unittests/test_handler/test_handler_apt_source.py')
-rw-r--r-- | tests/unittests/test_handler/test_handler_apt_source.py | 6 |
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) |