示例#1
0
 def rotation_get_fixture(self, request):
     xSp_cxml, expected_value = request.param
     shape = BaseShapeFactory(element(xSp_cxml), None)
     return shape, expected_value
示例#2
0
 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
示例#3
0
 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_