tests and fixtures for Type.is_install

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-07 18:22:38 +02:00
parent f515e20572
commit 52f9388f07
3 changed files with 8 additions and 0 deletions

View file

@ -51,7 +51,15 @@ class TypeTestCase(unittest.TestCase):
cdist_type = cdist.core.Type(base_path, '__not_singleton')
self.assertFalse(cdist_type.is_singleton)
def test_install_is_install(self):
base_path = fixtures
cdist_type = cdist.core.Type(base_path, '__install')
self.assertTrue(cdist_type.is_install)
def test_not_install_is_install(self):
base_path = fixtures
cdist_type = cdist.core.Type(base_path, '__not_install')
self.assertFalse(cdist_type.is_install)
'''
suite = unittest.TestLoader().loadTestsFromTestCase(ObjectTestCase)