

def test_fixed(self):
    data = 'foobar'
    fo = StringIO.StringIO(data)
    self.assertEquals(data[:3], parquet.encoding.read_plain_byte_array_fixed(fo, 3))
    self.assertEquals(data[3:], parquet.encoding.read_plain_byte_array_fixed(fo, 3))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/parquet-python/test/test_encoding.py TestPlain.test_fixed/original