Exemplo n.º 1
0
 def test_string(self):
     with pytest.raises(ValueError):
         inputs.natural('foo')
Exemplo n.º 2
0
 def test_negative(self):
     with pytest.raises(ValueError):
         inputs.natural(-1)
Exemplo n.º 3
0
 def test_default(self):
     assert inputs.natural(3) == 3
Exemplo n.º 4
0
 def test_default(self):
     assert_equal(3, inputs.natural(3))
Exemplo n.º 5
0
 def test_string(self):
     with assert_raises(ValueError):
         inputs.natural('foo')
Exemplo n.º 6
0
 def test_string(self):
     with assert_raises(ValueError):
         inputs.natural('foo')
Exemplo n.º 7
0
 def test_negative(self):
     with assert_raises(ValueError):
         inputs.natural(-1)
Exemplo n.º 8
0
 def test_default(self):
     assert_equal(3, inputs.natural(3))
Exemplo n.º 9
0
 def test_negative(self):
     with assert_raises(ValueError):
         inputs.natural(-1)
Exemplo n.º 10
0
 def test_string(self):
     with pytest.raises(ValueError):
         inputs.natural('foo')
Exemplo n.º 11
0
 def test_default(self):
     assert inputs.natural(3) == 3
Exemplo n.º 12
0
 def test_negative(self):
     with pytest.raises(ValueError):
         inputs.natural(-1)