Exemplo n.º 1
0
 def len_fixture(self, request):
     tbl_cxml, expected_len = request.param
     rows = _RowCollection(element(tbl_cxml), None)
     return rows, expected_len
Exemplo n.º 2
0
 def iter_fixture(self, request):
     tbl_cxml = request.param
     tbl = element(tbl_cxml)
     rows = _RowCollection(tbl, None)
     expected_row_lst = tbl.findall(qn('a:tr'))
     return rows, expected_row_lst
Exemplo n.º 3
0
 def it_raises_on_indexed_access_out_of_range(self):
     rows = _RowCollection(element('a:tbl/a:tr'), None)
     with pytest.raises(IndexError):
         rows[-1]
     with pytest.raises(IndexError):
         rows[9]
Exemplo n.º 4
0
 def len_fixture(self, request):
     tbl_cxml, expected_len = request.param
     rows = _RowCollection(element(tbl_cxml), None)
     return rows, expected_len
Exemplo n.º 5
0
 def iter_fixture(self, request):
     tbl_cxml = request.param
     tbl = element(tbl_cxml)
     rows = _RowCollection(tbl, None)
     expected_row_lst = tbl.findall(qn("a:tr"))
     return rows, expected_row_lst
Exemplo n.º 6
0
 def it_raises_on_indexed_access_out_of_range(self):
     rows = _RowCollection(element("a:tbl/a:tr"), None)
     with pytest.raises(IndexError):
         rows[-1]
     with pytest.raises(IndexError):
         rows[9]