diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-23 15:07:37 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-23 15:07:37 +0200 |
commit | d1887b6fb38d378bb35298fadd6bea729952f3a0 (patch) | |
tree | 5f5e1425da75339a20c03763116cdab0d7dbd327 /tests | |
parent | 4ed5251d17ee7a44ce12d38d9b3d4fa554279419 (diff) | |
download | vyos-cloud-init-d1887b6fb38d378bb35298fadd6bea729952f3a0.tar.gz vyos-cloud-init-d1887b6fb38d378bb35298fadd6bea729952f3a0.zip |
add test_apt_source_basic_dict
This is the basic testcase but in the new dictionary format
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_handler/test_handler_apt_source.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_source.py b/tests/unittests/test_handler/test_handler_apt_source.py index 76099035..d2370e93 100644 --- a/tests/unittests/test_handler/test_handler_apt_source.py +++ b/tests/unittests/test_handler/test_handler_apt_source.py @@ -103,6 +103,18 @@ class TestAptSourceConfig(TestCase): 'filename': self.aptlistfile} self.apt_source_basic(self.aptlistfile, [cfg]) + def test_apt_source_basic_dict(self): + """ test_apt_source_basic_dict + Test Fix deb source string, has to overwrite mirror conf in params. + Test with a filename provided in config. + Provided in a dictionary with filename being the key (new format) + """ + cfg = {self.aptlistfile: {'source': + ('deb http://archive.ubuntu.com/ubuntu' + ' karmic-backports' + ' main universe multiverse restricted')}} + self.apt_source_basic(self.aptlistfile, cfg) + def test_apt_source_basic_triple(self): """ test_apt_source_basic_triple Test Fix three deb source string, has to overwrite mirror conf in |