Ejemplo n.º 1
0
 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'))
Ejemplo n.º 2
0
 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'))
Ejemplo n.º 3
0
 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_
Ejemplo n.º 4
0
 def height_get_fixture(self, request):
     tr_cxml, expected_value = request.param
     row = _Row(element(tr_cxml), None)
     return row, expected_value
Ejemplo n.º 5
0
 def cells_fixture(self, _CellCollection_, cells_):
     row = _Row(element('a:tr'), None)
     return row, _CellCollection_, cells_
Ejemplo n.º 6
0
 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_
Ejemplo n.º 7
0
 def height_get_fixture(self, request):
     tr_cxml, expected_value = request.param
     row = _Row(element(tr_cxml), None)
     return row, expected_value
Ejemplo n.º 8
0
 def cells_fixture(self, _CellCollection_, cells_):
     row = _Row(element('a:tr'), None)
     return row, _CellCollection_, cells_