def test_is_reference(self): m = ConcreteModel() class _NotSpecified(object): pass m.comp = Component(ctype=_NotSpecified) self.assertFalse(m.comp.is_reference())
def test_construct_component_throws_exception(self): with self.assertRaisesRegexp( DeveloperError, "Must specify a component type for class Component"): Component()