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

Method it_can_change_its_partname

tests/opc/test_package.py:417–420  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

415 assert Part(PackURI("/part/name"), None, None).partname == PackURI("/part/name")
416
417 def it_can_change_its_partname(self):
418 part = Part(PackURI("/old/part/name"), None, None)
419 part.partname = PackURI("/new/part/name")
420 assert part.partname == PackURI("/new/part/name")
421
422 def it_provides_access_to_its_relationships_for_traversal(self, request, relationships_):
423 property_mock(request, Part, "_rels", return_value=relationships_)

Callers

nothing calls this directly

Calls 2

PartClass · 0.90
PackURIClass · 0.90

Tested by

no test coverage detected