forked from ungleich-public/cdist
test only one instance of same type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
73bdb7f11f
commit
5d59102018
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,12 @@ fixtures = op.join(my_dir, 'fixtures')
|
|||
class TypeTestCase(unittest.TestCase):
|
||||
|
||||
|
||||
def test_only_one_instance(self):
|
||||
base_path = fixtures
|
||||
cdist_type1 = cdist.core.Type(base_path, '__name_path')
|
||||
cdist_type2 = cdist.core.Type(base_path, '__name_path')
|
||||
self.assertEqual(id(cdist_type1), id(cdist_type2))
|
||||
|
||||
def test_name(self):
|
||||
base_path = fixtures
|
||||
cdist_type = cdist.core.Type(base_path, '__name_path')
|
||||
|
|
Loading…
Reference in a new issue