Exemplo n.º 1
0
 def test_invalid(self, response):
     with pytest.raises(ValueError):
         util.str_to_bool(response)
Exemplo n.º 2
0
 def test_falseish_upper(self, response):
     assert util.str_to_bool(response) is False
Exemplo n.º 3
0
 def test_trueish_upper(self, response):
     assert util.str_to_bool(response) is True
Exemplo n.º 4
0
 def test_invalid(self, response):
     with pytest.raises(ValueError):
         util.str_to_bool(response)
Exemplo n.º 5
0
 def test_falseish_upper(self, response):
     assert util.str_to_bool(response) is False
Exemplo n.º 6
0
 def test_trueish_upper(self, response):
     assert util.str_to_bool(response) is True