Пример #1
0
 def do_test(self):
     """Verify host matcher
     """
     getattr(self,
             'assert{}'.format(expect))(Config._match_host(host, hosts))
Пример #2
0
 def test_match_host(self):
     """Verify host matcher
     """
     with self.assertRaises(ConfigurationException):
         self.assertTrue(Config._match_host("srv01", [r".*"]))