From fb4d20e7e853f8f15cbd4f5b6aae238741478531 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 13 Oct 2011 13:33:24 +0200 Subject: [PATCH] test for test_list_type_explorer_names Signed-off-by: Steven Armstrong --- lib/cdist/test/explorer/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cdist/test/explorer/__init__.py b/lib/cdist/test/explorer/__init__.py index 67c05913..96206ae0 100644 --- a/lib/cdist/test/explorer/__init__.py +++ b/lib/cdist/test/explorer/__init__.py @@ -80,6 +80,11 @@ class ExplorerClassTestCase(unittest.TestCase): output = self.explorer.run_global_explorer('global') self.assertEqual(output, 'global\n') + def test_list_type_explorer_names(self): + cdist_type = core.Type(self.local.type_path, '__test_type') + expected = cdist_type.explorers + self.assertEqual(self.explorer.list_type_explorer_names(cdist_type), expected) + def test_transfer_type_explorers(self): cdist_type = core.Type(self.local.type_path, '__test_type') self.explorer.transfer_type_explorers(cdist_type)