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

Method it_can_construct_from_a_blob

tests/parts/test_image.py:110–114  ·  view source on GitHub ↗
(self, _init_)

Source from the content-addressed store, hash-verified

108 assert image is image_
109
110 def it_can_construct_from_a_blob(self, _init_):
111 image = Image.from_blob(b"blob", "foo.png")
112
113 _init_.assert_called_once_with(image, b"blob", "foo.png")
114 assert isinstance(image, Image)
115
116 def it_knows_its_blob(self, blob_fixture):
117 image, expected_value = blob_fixture

Callers

nothing calls this directly

Calls 1

from_blobMethod · 0.45

Tested by

no test coverage detected