(self, _init_)
| 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 |