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