コード例 #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")