def rotation_get_fixture(self, request): xSp_cxml, expected_value = request.param shape = BaseShapeFactory(element(xSp_cxml), None) return shape, expected_value
def rotation_set_fixture(self, request): xSp_cxml, new_value, expected_xSp_cxml = request.param shape = BaseShapeFactory(element(xSp_cxml), None) expected_xml = xml(expected_xSp_cxml) return shape, new_value, expected_xml
def it_constructs_the_right_shape_for_an_element(self, factory_fixture): shape_elm, parent_, ShapeClass_, shape_ = factory_fixture shape = BaseShapeFactory(shape_elm, parent_) ShapeClass_.assert_called_once_with(shape_elm, parent_) assert shape is shape_