| Conditions | 2 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/env python |
||
| 12 | def test_doc_load_from_json(self): |
||
| 13 | "Document.load_from_JSON should produce a Document from serialized_doc.json" |
||
| 14 | json_file = os.path.join(__location__, "serialized_doc.json") |
||
| 15 | print(json_file) |
||
| 16 | with open(json_file, "r") as jf: |
||
| 17 | doc = Document.load_from_JSON(json.load(jf)) |
||
| 18 | self.assertTrue(isinstance(doc, Document), "Document.load_from_JSON did not produce a Document from {}".format(json_file)) |
||
| 19 | |||
| 30 |