class FeaturesExtrusionTestCase(FeaturesExtrusionFixture):
+ def test_extrusion_feature_calls(self):
+ # call method of the feature
+ self.assertEqual(self.extrusion.getKind(), "Extrusion")
+
def test_extrusion_set_sizes(self):
self.extrusion.setSize(15, 20)
def __init__(self, feature):
self._feature = feature
+ def __getattr__(self, name):
+ """Process missing attributes.
+ Redirect missing attributes to the feature.
+ """
+ return self._feature.__getattribute__(name)
def setRealInput (self, inputid, value):
self._feature.data().real(inputid).setValue(value)