Test static method for reading JSON
(self)
| 35 | self.assertEqual(len(model._model_table.columns), self.MODEL_TABLE_COLUMN_COUNT) |
| 36 | |
| 37 | def test_read_json(self): |
| 38 | """Test static method for reading JSON""" |
| 39 | # Instantiate model |
| 40 | model = FairModel.read_json(self.MODEL_JSON) |
| 41 | self.assertTrue(model) |
| 42 | # Ensure metamodel fails |
| 43 | self.assertRaises(FairException, FairModel.read_json, self.META_MODEL_JSON) |
| 44 | |
| 45 | def test_inspection(self): |
| 46 | """Check the inspection methods""" |