diff --git a/tests/schema/test_hed_schema_io.py b/tests/schema/test_hed_schema_io.py index e6b8992b..40beb123 100644 --- a/tests/schema/test_hed_schema_io.py +++ b/tests/schema/test_hed_schema_io.py @@ -589,7 +589,7 @@ def test_schema2xml(self, filename): self.assertEqual(loaded_schema, self.base_schema) @with_temp_file(".ttl") - def test_schema2wiki(self, filename): + def test_schema2turtle(self, filename): self.base_schema.save_as_owl(filename) loaded_schema = schema.load_schema(filename) @@ -612,6 +612,17 @@ def test_schema2jsonld(self, filename): self.assertEqual(loaded_schema, self.base_schema) + def test_schema2owlstring(self): + owl_string = self.base_schema.get_as_owl_string(file_format="turtle") + loaded_schema = schema.from_string(owl_string, schema_format="turtle") + + self.assertEqual(loaded_schema, self.base_schema) + + owl_string = self.base_schema.get_as_owl_string(save_merged=True, file_format="turtle") + loaded_schema = schema.from_string(owl_string, schema_format="turtle") + + self.assertEqual(loaded_schema, self.base_schema) + def test_schema2bad_filename(self): with self.assertRaises(OSError): self.base_schema.save_as_owl("", file_format="xml")