コード例 #1
0
 def test_natual_string(self):
     self.assertRaises(ValueError, lambda: types.natural('foo'))
コード例 #2
0
 def test_natual_negative(self):
     self.assertRaises(ValueError, lambda: types.natural(-1))
コード例 #3
0
 def test_natual(self):
     self.assertEquals(3, types.natural(3))
コード例 #4
0
ファイル: test_types.py プロジェクト: aldenm/flask-restful
 def test_natual_string(self):
     with self.assertRaises(ValueError):
         types.natural('foo')
コード例 #5
0
 def test_natural(self):
     assert_equal(3, types.natural(3))
コード例 #6
0
ファイル: test_types.py プロジェクト: aldenm/flask-restful
 def test_natual(self):
     self.assertEquals(3, types.natural(3))
コード例 #7
0
ファイル: test_types.py プロジェクト: aldenm/flask-restful
 def test_natual_negative(self):
     with self.assertRaises(ValueError):
         types.natural(-1)
コード例 #8
0
 def test_natual_string(self):
     self.assertRaises(ValueError, lambda: types.natural('foo'))
コード例 #9
0
 def test_natual_negative(self):
     self.assertRaises(ValueError, lambda: types.natural(-1))
コード例 #10
0
ファイル: test_types.py プロジェクト: EvaSDK/flask-restful
 def test_natural(self):
     assert_equal(3, types.natural(3))