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