Skip to content

Commit ce2bfad

Browse files
committed
[test/parser] Add rdf reader equality test
1 parent 113bd3d commit ce2bfad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_parser_odml.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ def test_rdf_file(self):
8585
self.rdf_writer.write_file(self.odml_doc, self.rdf_file)
8686
rdf_doc = self.rdf_reader.from_file(self.rdf_file, "turtle")
8787

88-
# RDF does not preserve the order of sections,
89-
# need to check the attributes by hand.
88+
self.assertEqual(self.odml_doc, rdf_doc[0])
89+
90+
# RDF does not preserve the order of sections or properties,
91+
# check the attributes by hand to make sure everything
92+
# was correctly imported.
9093
self.assertEqual(len(rdf_doc), 1)
9194
self.assertEqual(rdf_doc[0].author, self.odml_doc.author)
9295
self.assertEqual(rdf_doc[0].version, self.odml_doc.version)

0 commit comments

Comments
 (0)