add test for Type base_path
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
a8733c5b9b
commit
f4b1252063
1 changed files with 5 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue