def _test_file_csv(self, parquet_file, csv_file):
        expected_data = []
        with open(csv_file, 'rb') as f:
            expected_data = list(csv.reader(f, delimiter='|'))

        actual_raw_data = StringIO.StringIO()
        parquet.dump(parquet_file, Options(), out=actual_raw_data)
        actual_raw_data.seek(0, 0)
        actual_data = list(csv.reader(actual_raw_data, delimiter='\t'))

        assert expected_data == actual_data, "{0} != {1}".format(
            str(expected_data), str(actual_data))

        actual_raw_data = StringIO.StringIO()
        parquet.dump(parquet_file, Options(no_headers=False),
                     out=actual_raw_data)
        actual_raw_data.seek(0, 0)
        actual_data = list(csv.reader(actual_raw_data, delimiter='\t'))[1:]

        assert expected_data == actual_data, "{0} != {1}".format(
            str(expected_data), str(actual_data))
Given the parquet_file and csv_file representation, converts the
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/parquet-python/test/test_read_support.py/TestCompatibility._test_file_csv