예제 #1
0
 def width_set_fixture(self, request):
     initial_w, value, expected_w = request.param
     gridCol = self.gridCol_bldr(initial_w).element
     column = _Column(gridCol, None)
     expected_xml = self.gridCol_bldr(expected_w).xml()
     return column, value, expected_xml
예제 #2
0
 def column(self):
     return _Column(None, None)
예제 #3
0
 def width_set_fixture(self, request):
     gridCol_cxml, new_value, expected_cxml = request.param
     column = _Column(element(gridCol_cxml), None)
     expected_xml = xml(expected_cxml)
     return column, new_value, expected_xml
예제 #4
0
 def width_get_fixture(self, request):
     w, expected_width = request.param
     gridCol = self.gridCol_bldr(w).element
     column = _Column(gridCol, None)
     return column, expected_width
예제 #5
0
 def table_fixture(self, parent_, table_):
     column = _Column(None, parent_)
     parent_.table = table_
     return column, table_
예제 #6
0
 def width_get_fixture(self, request):
     gridCol_cxml, expected_width = request.param
     column = _Column(element(gridCol_cxml), None)
     return column, expected_width
예제 #7
0
 def cells_fixture(self, _index_, table_prop_, table_):
     column = _Column(None, None)
     _index_.return_value = column_idx = 4
     expected_cells = (3, 2, 1)
     table_.column_cells.return_value = list(expected_cells)
     return column, column_idx, expected_cells
예제 #8
0
 def index_fixture(self):
     tbl = element('w:tbl/w:tblGrid/(w:gridCol,w:gridCol,w:gridCol)')
     gridCol, expected_idx = tbl.tblGrid[1], 1
     column = _Column(gridCol, None)
     return column, expected_idx
예제 #9
0
 def width_get_fixture(self, request):
     gridCol_cxml, expected_width = request.param
     column = _Column(element(gridCol_cxml), None)
     return column, expected_width
예제 #10
0
 def width_set_fixture(self, request):
     gridCol_cxml, new_value, expected_cxml = request.param
     column = _Column(element(gridCol_cxml), None)
     expected_xml = xml(expected_cxml)
     return column, new_value, expected_xml
예제 #11
0
 def table_fixture(self, parent_, table_):
     column = _Column(None, parent_)
     parent_.table = table_
     return column, table_
예제 #12
0
 def index_fixture(self):
     tbl = element('w:tbl/w:tblGrid/(w:gridCol,w:gridCol,w:gridCol)')
     gridCol, expected_idx = tbl.tblGrid[1], 1
     column = _Column(gridCol, None)
     return column, expected_idx
예제 #13
0
 def cells_fixture(self, _index_, table_prop_, table_):
     column = _Column(None, None)
     _index_.return_value = column_idx = 4
     expected_cells = (3, 2, 1)
     table_.column_cells.return_value = list(expected_cells)
     return column, column_idx, expected_cells
예제 #14
0
 def it_provides_access_to_the_column_cells(self):
     column = _Column(None, None, None)
     cells = column.cells
     assert isinstance(cells, _ColumnCells)
예제 #15
0
 def it_provides_access_to_the_column_cells(self):
     column = _Column(None, None, None)
     cells = column.cells
     assert isinstance(cells, _ColumnCells)