def test_import(self): Image = self.make_one() with pytest.raises(ImportError): i = Image._import_image(self.img)