def test_get_model(self): from libcellml import Error, Model # ModelPtr getModel() e = Error() self.assertIsNone(e.getModel()) name = 'moodle' m = Model() m.setName(name) e.setModel(m) self.assertIsInstance(e.getModel(), Model) self.assertEqual(e.getModel().getName(), name)
def test_set_model(self): from libcellml import Error, Model # void setModel(const ModelPtr &model) e = Error() e.setModel(Model())