예제 #1
0
파일: test_hide.py 프로젝트: qll/shit
 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")
예제 #2
0
파일: test_hide.py 프로젝트: qll/shit
 def test_img_path_is_not_a_file(self):
     with self.assertRaises(AssertionError):
         hide.encode_patchwork(inp="./nonExistent", out="./", msg="OK")