'Test the limit option.'

def test_limit(self):

    limit = 2
    expected_data = []
    with io.open(CSV_FILE, u'r', encoding=u'utf-8') as fo:
        expected_data = list(csv.reader(fo, delimiter=u'|'))[:limit]
    actual_raw_data = io.StringIO()
    parquet.dump(TEST_FILE, Options(limit=limit), out=actual_raw_data)
    actual_raw_data.seek(0, 0)
    actual_data = list(csv.reader(actual_raw_data, delimiter=u' DCTB '))
    self.assertListEqual(expected_data, actual_data)
