def test_parse_without_name(self): yaml = "bar:woo\n" cp = RuleLoader("test.yaml") self.assertEquals("test::gen1", cp._get_key(yaml))
def test_parse_name_with_space(self): yaml = "#! foo \nbar:woo\n" cp = RuleLoader("test.yaml") self.assertEquals("test::foo", cp._get_key(yaml))