MCPcopy Create free account
hub / github.com/scanny/python-pptx / it_provides_access_to_its_cells

Method it_provides_access_to_its_cells

tests/test_table.py:33–43  ·  view source on GitHub ↗
(self, tbl_, tc_, _Cell_, cell_)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

cellMethod · 0.95
TableClass · 0.90

Tested by

no test coverage detected