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

Method it_supports_indexed_access

tests/test_table.py:528–537  ·  view source on GitHub ↗
(self, _Cell_, cell_)

Source from the content-addressed store, hash-verified

526 assert cells == expected_cells
527
528 def it_supports_indexed_access(self, _Cell_, cell_):
529 tr = element("a:tr/(a:tc, a:tc, a:tc)")
530 tcs = tr.xpath("//a:tc")
531 _Cell_.return_value = cell_
532 cell_collection = _CellCollection(tr, None)
533
534 cell = cell_collection[1]
535
536 _Cell_.assert_called_once_with(tcs[1], cell_collection)
537 assert cell is cell_
538
539 def it_raises_on_indexed_access_out_of_range(self):
540 cells = _CellCollection(element("a:tr/a:tc"), None)

Callers

nothing calls this directly

Calls 3

_CellCollectionClass · 0.90
elementFunction · 0.85
xpathMethod · 0.45

Tested by

no test coverage detected