예제 #1
0
 def test_parse_record(self):
     with pytest.raises(ValueError):
         Record.parse_record('Hello, World!')
예제 #2
0
    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')