diff options
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-30 12:48:00 +0200 |
---|---|---|
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | 2016-05-30 12:48:00 +0200 |
commit | c7b9b2b04490fda948631eecdba1bb678f0e4db9 (patch) | |
tree | 799dafcac8f7a18c09120dbd9a9e5c7b1fe98c7a | |
parent | aa236033b159b691f5ec31885750a8167c63b2a1 (diff) | |
download | vyos-cloud-init-c7b9b2b04490fda948631eecdba1bb678f0e4db9.tar.gz vyos-cloud-init-c7b9b2b04490fda948631eecdba1bb678f0e4db9.zip |
add test for wrong apt_source format
-rw-r--r-- | tests/unittests/test_handler/test_handler_apt_source.py | 3 |
1 files changed, 3 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 4536c5b2..fe2ffae5 100644 --- a/tests/unittests/test_handler/test_handler_apt_source.py +++ b/tests/unittests/test_handler/test_handler_apt_source.py @@ -544,5 +544,8 @@ class TestAptSourceConfig(TestCase): newcfg2 = cc_apt_configure.convert_to_new_format(newcfg) self.assertEqual(newcfg2, checkcfg) + with self.assertRaises(ValueError): + cc_apt_configure.convert_to_new_format(5) + # vi: ts=4 expandtab |