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

Method it_provides_access_to_its_columns

tests/test_table.py:45–56  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

43 assert cell is cell_
44
45 def it_provides_access_to_its_columns(self, request):
46 columns_ = instance_mock(request, _ColumnCollection)
47 _ColumnCollection_ = class_mock(
48 request, "pptx.table._ColumnCollection", return_value=columns_
49 )
50 tbl = element("a:tbl")
51 table = Table(tbl, None)
52
53 columns = table.columns
54
55 _ColumnCollection_.assert_called_once_with(tbl, table)
56 assert columns is columns_
57
58 def it_can_iterate_its_grid_cells(self, request, _Cell_):
59 tbl = element("a:tbl/(a:tr/(a:tc,a:tc),a:tr/(a:tc,a:tc))")

Callers

nothing calls this directly

Calls 4

TableClass · 0.90
instance_mockFunction · 0.85
class_mockFunction · 0.85
elementFunction · 0.85

Tested by

no test coverage detected