コード例 #1
0
 def test_negative(self):
     with pytest.raises(ValueError):
         inputs.positive(-1)
コード例 #2
0
 def test_positive(self):
     assert inputs.positive(1) == 1
     assert inputs.positive(10000) == 10000
コード例 #3
0
 def test_zero(self):
     with pytest.raises(ValueError):
         inputs.positive(0)
コード例 #4
0
ファイル: test_inputs.py プロジェクト: Dlotan/flask-restplus
 def test_zero(self):
     with assert_raises(ValueError):
         inputs.positive(0)
コード例 #5
0
ファイル: test_inputs.py プロジェクト: Dlotan/flask-restplus
 def test_negative(self):
     with assert_raises(ValueError):
         inputs.positive(-1)
コード例 #6
0
 def test_negative(self):
     with assert_raises(ValueError):
         inputs.positive(-1)
コード例 #7
0
ファイル: test_inputs.py プロジェクト: Dlotan/flask-restplus
 def test_positive(self):
     assert_equal(1, inputs.positive(1))
     assert_equal(10000, inputs.positive(10000))
コード例 #8
0
 def test_zero(self):
     with assert_raises(ValueError):
         inputs.positive(0)
コード例 #9
0
 def test_positive(self):
     assert_equal(1, inputs.positive(1))
     assert_equal(10000, inputs.positive(10000))
コード例 #10
0
ファイル: test_inputs.py プロジェクト: ziirish/flask-restplus
 def test_negative(self):
     with pytest.raises(ValueError):
         inputs.positive(-1)
コード例 #11
0
ファイル: test_inputs.py プロジェクト: ziirish/flask-restplus
 def test_zero(self):
     with pytest.raises(ValueError):
         inputs.positive(0)
コード例 #12
0
ファイル: test_inputs.py プロジェクト: ziirish/flask-restplus
 def test_positive(self):
     assert inputs.positive(1) == 1
     assert inputs.positive(10000) == 10000