tests and fixtures for Type.is_install
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
f515e20572
commit
52f9388f07
3 changed files with 8 additions and 0 deletions
0
lib/cdist/test/type/fixtures/__install/install
Normal file
0
lib/cdist/test/type/fixtures/__install/install
Normal file
0
lib/cdist/test/type/fixtures/__not_install/.keep
Normal file
0
lib/cdist/test/type/fixtures/__not_install/.keep
Normal file
|
@ -51,7 +51,15 @@ class TypeTestCase(unittest.TestCase):
|
||||||
cdist_type = cdist.core.Type(base_path, '__not_singleton')
|
cdist_type = cdist.core.Type(base_path, '__not_singleton')
|
||||||
self.assertFalse(cdist_type.is_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)
|
suite = unittest.TestLoader().loadTestsFromTestCase(ObjectTestCase)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue