Exemple #1
0
 def test_submodule(self):
     filename = puppet._checkfile_for_class("/puppet", "example::another")
     self.assertEqual(filename, "/puppet/modules/example/another/cabot-checks.ini")
Exemple #2
0
 def test_disallow_shenanigans(self):
     with self.assertRaises(Exception):
         puppet._checkfile_for_class("/puppet", "../fork")
Exemple #3
0
 def test_simple_name(self):
     filename = puppet._checkfile_for_class("/puppet", "example")
     self.assertEqual(filename, "/puppet/modules/example/cabot-checks.ini")