def do_test(self): """Verify host matcher """ getattr(self, 'assert{}'.format(expect))(Config._match_host(host, hosts))
def test_match_host(self): """Verify host matcher """ with self.assertRaises(ConfigurationException): self.assertTrue(Config._match_host("srv01", [r".*"]))