Esempio n. 1
0
 def it_can_construct_from_a_blob(self, from_blob_fixture):
     blob, filename = from_blob_fixture
     image = Image.from_blob(blob, filename)
     Image.__init__.assert_called_once_with(blob, filename)
     assert isinstance(image, Image)
Esempio n. 2
0
 def it_can_construct_from_a_blob(self, from_blob_fixture):
     blob, filename = from_blob_fixture
     image = Image.from_blob(blob, filename)
     Image.__init__.assert_called_once_with(blob, filename)
     assert isinstance(image, Image)
Esempio n. 3
0
    def it_can_construct_from_a_blob(self, _init_):
        image = Image.from_blob(b"blob", "foo.png")

        _init_.assert_called_once_with(image, b"blob", "foo.png")
        assert isinstance(image, Image)