add some more checks

This commit is contained in:
Jon Lundy
2020-06-08 13:38:42 -06:00
parent 70ab70c398
commit a589d521da

View File

@@ -258,6 +258,8 @@ class TestSchema(unittest.TestCase):
schema = SchemaDOM()
schema.parse(dom)
self.assertTrue(schema.valid)
schemas[schema.ref] = schema
files = []
@@ -267,6 +269,9 @@ class TestSchema(unittest.TestCase):
dom = FileDOM(src=fname)
dom.parse(text.splitlines())
self.assertTrue(dom.valid)
self.assertEqual(str(dom), text)
files.append(dom)
name = dom.src.split("/")[-1].replace("_", "/")