def test_if_output_extension_equals_jpg(self): for test in ('jpg', 'jpeg', 'jpEg', 'JPG'): with self.assertRaises(AssertionError): hide.encode_patchwork(inp=__file__, out="./bla.%s" % test, msg="OK")
def test_img_path_is_not_a_file(self): with self.assertRaises(AssertionError): hide.encode_patchwork(inp="./nonExistent", out="./", msg="OK")