def test_log_line_no_match(): with pytest.raises(testprocess.InvalidLine): quteprocess.LogLine("Hello World!")
def test_log_line_parse(data, attrs): line = quteprocess.LogLine(data) for name, expected in attrs.items(): actual = getattr(line, name) assert actual == expected, name