add test for Type base_path

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-14 08:58:34 +02:00
parent a8733c5b9b
commit f4b1252063

View file

@ -62,6 +62,11 @@ class TypeTestCase(unittest.TestCase):
cdist_type = cdist.core.Type(base_path, '__name_path') cdist_type = cdist.core.Type(base_path, '__name_path')
self.assertEqual(cdist_type.path, '__name_path') self.assertEqual(cdist_type.path, '__name_path')
def test_base_path(self):
base_path = fixtures
cdist_type = cdist.core.Type(base_path, '__name_path')
self.assertEqual(cdist_type.base_path, base_path)
def test_absolute_path(self): def test_absolute_path(self):
base_path = fixtures base_path = fixtures
cdist_type = cdist.core.Type(base_path, '__name_path') cdist_type = cdist.core.Type(base_path, '__name_path')