def test_invalid_value(self): store = yaml.YAMLFile() with pytest.raises(base.ParseError): store.parse('val: "\\u string"')
def test_invalid_key(self): store = yaml.YAMLFile() with pytest.raises(base.ParseError): store.parse('1: string')