summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_handler/test_handler_apt_source.py3
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')