From f4b12520631dbebec1e5927d9b9652f72dda2cb3 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 14 Oct 2011 08:58:34 +0200 Subject: [PATCH] add test for Type base_path Signed-off-by: Steven Armstrong --- lib/cdist/test/type/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cdist/test/type/__init__.py b/lib/cdist/test/type/__init__.py index 5ba1f4b9..42234069 100644 --- a/lib/cdist/test/type/__init__.py +++ b/lib/cdist/test/type/__init__.py @@ -62,6 +62,11 @@ class TypeTestCase(unittest.TestCase): cdist_type = cdist.core.Type(base_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): base_path = fixtures cdist_type = cdist.core.Type(base_path, '__name_path')