| 31 | """Unit-test suite for `pptx.table.Table` objects.""" |
| 32 | |
| 33 | def it_provides_access_to_its_cells(self, tbl_, tc_, _Cell_, cell_): |
| 34 | row_idx, col_idx = 4, 2 |
| 35 | tbl_.tc.return_value = tc_ |
| 36 | _Cell_.return_value = cell_ |
| 37 | table = Table(tbl_, None) |
| 38 | |
| 39 | cell = table.cell(row_idx, col_idx) |
| 40 | |
| 41 | tbl_.tc.assert_called_once_with(row_idx, col_idx) |
| 42 | _Cell_.assert_called_once_with(tc_, table) |
| 43 | assert cell is cell_ |
| 44 | |
| 45 | def it_provides_access_to_its_columns(self, request): |
| 46 | columns_ = instance_mock(request, _ColumnCollection) |