def test_invalid(self, value, message): with pytest.raises(ValueError) as excinfo: utils.parse_rect(value) assert str(excinfo.value) == message
def test_hypothesis_regex(self, s): try: utils.parse_rect(s) except ValueError as e: print(e)
def test_valid(self, value, expected): assert utils.parse_rect(value) == expected
def test_hypothesis_sophisticated(self, s): try: utils.parse_rect(s) except ValueError as e: print(e)