コード例 #1
0
 def test_urlDecodeErrorReprPy3(self):
     """
     URLDecodeError.__repr__ formats properly.
     """
     self.assertEqual(
         "<URLDecodeError(errors=<class 'ValueError'>)>",
         repr(_URLDecodeError(ValueError)),
     )
コード例 #2
0
ファイル: test_resource.py プロジェクト: InfoSec812/klein
 def test_urlDecodeErrorReprPy3(self):
     """
     URLDecodeError.__repr__ formats properly.
     """
     self.assertEqual(
         "<URLDecodeError(errors=<class 'ValueError'>)>",
         repr(_URLDecodeError(ValueError)),
     )
コード例 #3
0
 def test_urlDecodeErrorReprPy2(self):
     """
     URLDecodeError.__repr__ formats properly.
     """
     self.assertEqual(
         "<URLDecodeError(errors=<type 'exceptions.ValueError'>)>",
         repr(_URLDecodeError(ValueError)),
     )
コード例 #4
0
ファイル: test_resource.py プロジェクト: InfoSec812/klein
 def test_urlDecodeErrorReprPy2(self):
     """
     URLDecodeError.__repr__ formats properly.
     """
     self.assertEqual(
         "<URLDecodeError(errors=<type 'exceptions.ValueError'>)>",
         repr(_URLDecodeError(ValueError)),
     )