@pytest.mark.parametrize('filename', ['protobuf02', 'protobuf03'])
def test_format_pbuf(filename, tdata):
    path = tdata.path((datadir + filename))
    with open(path, 'rb') as f:
        input = f.read()
    with open((path + '-decoded')) as f:
        expected = f.read()
    assert (protobuf.format_pbuf(input) == expected)
@pytest.mark.parametrize('filename', ['protobuf02', 'protobuf03'])
def test_format_pbuf(filename, tdata):
    path = tdata.path((datadir + filename))
    with open(path, 'rb') as f:
        input = f.read()
    with open((path + '-decoded')) as f:
        expected = f.read()
    assert (protobuf.format_pbuf(input) == expected)