diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-12 21:13:57 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-12 21:13:57 +0200 |
commit | 2a54898f8009f1511862a75467e84a77bef1943a (patch) | |
tree | 687699a4e3784988543067c7e9148f56d947b961 /tests | |
parent | 3c2c85a7c152c5026ff3122a7e134c5db4cfdce7 (diff) | |
download | vyos-cloud-init-2a54898f8009f1511862a75467e84a77bef1943a.tar.gz vyos-cloud-init-2a54898f8009f1511862a75467e84a77bef1943a.zip |
improve spacing in apt_source_list test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_handler/test_handler_apt_configure_sources_list.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py b/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py index d4fdee21..3bcd93cf 100644 --- a/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py +++ b/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py @@ -91,16 +91,12 @@ class TestAptSourceConfigSourceList(t_help.FilesystemMockingTestCase): cc_apt_configure.handle("notimportant", cfg, mycloud, LOG, None) - mockisfile.assert_any_call(('/etc/cloud/templates/' - 'sources.list.%s.tmpl' % distro)) - mocktmpl.assert_called_once_with(('/etc/cloud/templates/' - 'sources.list.%s.tmpl' % distro), - '/etc/apt/sources.list', - {'codename': '', - 'primary': - mirrorcheck, - 'mirror': - mirrorcheck}) + mockisfile.assert_any_call( + ('/etc/cloud/templates/sources.list.%s.tmpl' % distro)) + mocktmpl.assert_called_once_with( + ('/etc/cloud/templates/sources.list.%s.tmpl' % distro), + '/etc/apt/sources.list', + {'codename': '', 'primary': mirrorcheck, 'mirror': mirrorcheck}) def test_apt_source_list_debian(self): """ test_apt_source_list_debian |