def test_component(self): from libcellml import Issue, Component # ComponentPtr component() e = Issue() self.assertIsNone(e.component()) name = 'cellml' c = Component() c.setName(name) e.setComponent(c) self.assertIsInstance(e.component(), Component) self.assertEqual(e.component().name(), name)
def test_set_component(self): from libcellml import Issue, Component # void setComponent(const ComponentPtr &component) e = Issue() e.setComponent(Component())