@classmethod
    def setUpClass(cls):
        super(TestScanner, cls).setUpClass()

        cls.nrows = 100
        table = cls.client.open_table(cls.ex_table)
        session = cls.client.new_session()

        tuples = []
        for i in range(cls.nrows):
            op = table.insert()
            tup = i, i * 2, 'hello_%d' % i
            op['key'] = tup[0]
            op['int_val'] = tup[1]
            op['string_val'] = tup[2]
            session.apply(op)
            tuples.append(tup)
        session.flush()

        cls.table = table
        cls.tuples = tuples
dataset/ETHPy150Open cloudera/kudu-examples/clients/python/kudu/tests/test_kudu.py/TestScanner.setUpClass/original