diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-11 16:56:12 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-11 16:56:12 +0200 |
commit | b4f76a0a855d792acc05807a3a62cc8c72d80792 (patch) | |
tree | a6d867a8b96d12ada1f059e9011ee562e4133cac /tests | |
parent | d82f6c1ecd255ed3a76bd8ef7b76163408f0b398 (diff) | |
download | vyos-cloud-init-b4f76a0a855d792acc05807a3a62cc8c72d80792.tar.gz vyos-cloud-init-b4f76a0a855d792acc05807a3a62cc8c72d80792.zip |
apt_apt_source_key doesn't need a mocked retval
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_handler/test_handler_apt_source.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_source.py b/tests/unittests/test_handler/test_handler_apt_source.py index 92a92406..091b07da 100644 --- a/tests/unittests/test_handler/test_handler_apt_source.py +++ b/tests/unittests/test_handler/test_handler_apt_source.py @@ -147,8 +147,7 @@ class TestAptSourceConfig(TestCase): 'key': "fakekey 4321", 'filename': self.aptlistfile} - with mock.patch.object(util, 'subp', - return_value=('fakekey 1234', '')) as mockobj: + with mock.patch.object(util, 'subp') as mockobj: cc_apt_configure.add_sources([cfg], params) mockobj.assert_called_with(('apt-key', 'add', '-'), 'fakekey 4321') |