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
def test_format_pbuf(filename, tdata): path = tdata.path(datadir + filename) with open(path, "rb") as f: input = f.read() with open(path.replace(".bin", "-decoded.bin")) as f: expected = f.read() assert protobuf.format_pbuf(input) == expected
def test_format_pbuf(filename): path = data.path(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