def test_parse_record(self): with pytest.raises(ValueError): Record.parse_record('Hello, World!')
def test_parse_record(self): with pytest.raises(ValueError, match='regex error'): Record.parse_record('Hello, World!') with pytest.raises(ValueError, match='count error'): Record.parse_record('S1FF0000FF')