def test_mixed_indices_and_column_names_in_patterns(self):
        fcr = FilteringCSVReader(iter(self.tab2), patterns={'age': 'only', 0: '2'})
        self.assertEqual(self.tab2[0], next(fcr))
        self.assertEqual(self.tab2[4], next(fcr))
        try:
            next(fcr)
            self.fail("Should be no more rows left.")
        except __HOLE__:
            pass
dataset/ETHPy150Open wireservice/csvkit/tests/test_grep.py/TestGrep.test_mixed_indices_and_column_names_in_patterns