def test_save_img_output_none(self):
     with pytest.raises(ValueError) as exc:
         iu.save_img(self.test_image, None, "My Question")
     assert exc.value.message == "The output name can't be a None object."
 def test_save_img_output_void(self):
     with pytest.raises(ValueError) as exc:
         iu.save_img(self.test_image, '', "My Question")
     assert exc.value.message == "The value of the output name can't be ''."
 def test_save_img_question_void(self):
     with pytest.raises(ValueError) as exc:
         iu.save_img(self.test_image, "output", "")
     assert exc.value.message == "The value of the question can't be ''."
 def test_save_img_question_none(self):
     with pytest.raises(ValueError) as exc:
         iu.save_img(self.test_image, "output", None)
     assert exc.value.message == "The question can't be a None object."
 def test_save_img_none(self):
     with pytest.raises(IOError) as exc:
         iu.save_img(None, "output", "My Question")
     assert exc.value.message == "Input image is None."