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

Method it_can_change_its_blob

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

Source from the content-addressed store, hash-verified

401 assert Part(None, None, None, b"blob").blob == b"blob"
402
403 def it_can_change_its_blob(self):
404 part = Part(None, None, None, b"old-blob")
405 part.blob = b"new-blob"
406 assert part.blob == b"new-blob"
407
408 def it_knows_its_content_type(self):
409 assert Part(None, CT.PML_SLIDE, None).content_type == CT.PML_SLIDE

Callers

nothing calls this directly

Calls 1

PartClass · 0.90

Tested by

no test coverage detected