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