def setUp(self): gridCol_xml = '<a:gridCol %s w="3048000"/>' % nsdecls('a') test_gridCol_elm = parse_xml_bytes(gridCol_xml) self.column = _Column(test_gridCol_elm, Mock(name='table'))
def width_set_fixture(self, request, parent_): gridCol_cxml, new_width, expected_gridCol_cxml = request.param column = _Column(element(gridCol_cxml), parent_) expected_xml = xml(expected_gridCol_cxml) return column, new_width, expected_xml, parent_
def width_get_fixture(self, request): gridCol_cxml, expected_value = request.param column = _Column(element(gridCol_cxml), None) return column, expected_value