diff options
| author | Nate House nathan.house@rackspace.com <> | 2014-02-04 16:09:09 -0600 |
|---|---|---|
| committer | Nate House nathan.house@rackspace.com <> | 2014-02-04 16:09:09 -0600 |
| commit | 6e0aaf44c7a869d35a962a2d60be2d833023d4ec (patch) | |
| tree | 2cf2bf8727e389c53e25190becb2ba44ac2ffd9d /tests/unittests/test_distros | |
| parent | 6922fc8294e38ee0780e9d74da7d3ec010a3cd3c (diff) | |
| parent | 0efeb26736ddae2967c14a9440088594da32070d (diff) | |
| download | vyos-cloud-init-6e0aaf44c7a869d35a962a2d60be2d833023d4ec.tar.gz vyos-cloud-init-6e0aaf44c7a869d35a962a2d60be2d833023d4ec.zip | |
Merge gentoo branch and updated set-password to support systemctl
Diffstat (limited to 'tests/unittests/test_distros')
| -rw-r--r-- | tests/unittests/test_distros/test_is_excluded.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/unittests/test_distros/test_is_excluded.py b/tests/unittests/test_distros/test_is_excluded.py new file mode 100644 index 00000000..53a4445c --- /dev/null +++ b/tests/unittests/test_distros/test_is_excluded.py @@ -0,0 +1,15 @@ +from cloudinit.distros import gentoo +import unittest + + +class TestIsExcluded(unittest.TestCase): + + def setUp(self): + self.distro = gentoo.Distro('gentoo', {}, None) + self.distro.exclude_modules = ['test-module'] + + def test_is_excluded_success(self): + self.assertEqual(self.distro.is_excluded('test-module'), True) + + def test_is_excluded_fail(self): + self.assertEqual(self.distro.is_excluded('missing'), None) |
