Exemplo n.º 1
0
 def test_invalid(self, value, message):
     with pytest.raises(ValueError) as excinfo:
         utils.parse_rect(value)
     assert str(excinfo.value) == message
Exemplo n.º 2
0
 def test_hypothesis_regex(self, s):
     try:
         utils.parse_rect(s)
     except ValueError as e:
         print(e)
Exemplo n.º 3
0
 def test_valid(self, value, expected):
     assert utils.parse_rect(value) == expected
Exemplo n.º 4
0
 def test_hypothesis_sophisticated(self, s):
     try:
         utils.parse_rect(s)
     except ValueError as e:
         print(e)