tests and fixtures for Type.is_install

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/feature_files_export
Steven Armstrong 13 years ago
parent f515e20572
commit 52f9388f07
  1. 0
      lib/cdist/test/type/fixtures/__install/install
  2. 0
      lib/cdist/test/type/fixtures/__not_install/.keep
  3. 8
      lib/cdist/test/type/test_type.py

@ -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)

Loading…
Cancel
Save