Beispiel #1
0
 def test_bad_yaml(self):
     with self.assertRaises(ReschemaException):
         r = ServiceDef()
         r.parse_text(yaml_snippet_bad, format='yaml')
Beispiel #2
0
 def test_bad_json(self):
     with self.assertRaises(ReschemaException):
         r = ServiceDef()
         r.parse_text(json_snippet_bad)