def setUp(self): tr_xml = ( '<a:tr %s h="370840"><a:tc><a:txBody><a:p/></a:txBody></a:tc><a:t' 'c><a:txBody><a:p/></a:txBody></a:tc></a:tr>' % nsdecls('a') ) test_tr_elm = parse_xml_bytes(tr_xml) self.row = _Row(test_tr_elm, Mock(name='table'))
def height_set_fixture(self, request, parent_): tr_cxml, new_height, expected_tr_cxml = request.param row = _Row(element(tr_cxml), parent_) expected_xml = xml(expected_tr_cxml) return row, new_height, expected_xml, parent_
def height_get_fixture(self, request): tr_cxml, expected_value = request.param row = _Row(element(tr_cxml), None) return row, expected_value
def cells_fixture(self, _CellCollection_, cells_): row = _Row(element('a:tr'), None) return row, _CellCollection_, cells_