コード例 #1
0
ファイル: test_reqparse.py プロジェクト: imfht/flaskapps
 def test_argument_repr(self):
     arg = Argument('foo')
     try:  # Python 2.6 compatibility
         self.assertIn('foo', arg.__repr__())
     except AttributeError:
         self.assertTrue('foo' in arg.__repr__())
     self.assertTrue(arg.__repr__().startswith("Argument('foo'"))
コード例 #2
0
 def test_argument_repr(self):
     arg = Argument('foo')
     try:  # Python 2.6 compatibility
         self.assertIn('foo', arg.__repr__())
     except AttributeError:
         self.assertTrue('foo' in arg.__repr__())
     self.assertTrue(arg.__repr__().startswith("Argument('foo'"))