| Conditions | 2 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/env python |
||
| 20 | def test_sentence_load_from_json(self): |
||
| 21 | "Sentence.load_from_JSON should produce a Sentence from serialized_sentence.json" |
||
| 22 | json_file = os.path.join(__location__, "serialized_sentence.json") |
||
| 23 | print(json_file) |
||
| 24 | with open(json_file, "r") as jf: |
||
| 25 | s = Sentence.load_from_JSON(json.load(jf)) |
||
| 26 | self.assertTrue(isinstance(s, Sentence), "Sentence.load_from_JSON did not produce a Sentence from {}".format(json_file)) |
||
| 27 | |||
| 30 |