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