def setup_method(self, method):
        """
        Setup method.
        """
        hostlist, user, password = TestBaseClass.get_hosts()
        config = {'hosts': hostlist}
        if user is None and password is None:
            self.client = aerospike.client(config).connect()
        else:
            self.client = aerospike.client(config).connect(user, password)
        for i in range(5):
            key = ('test', 'demo', i)
            rec = {'name': 'name%s' % (str(i)), 'age': i}
            self.client.put(key, rec)
        policy = {}
        self.client.udf_put("bin_lua.lua", 0, policy)
        self.job_id = self.client.scan_apply("test", "demo", "bin_lua",
                                             "mytransform", ['age', 2])
dataset/ETHPy150Open aerospike/aerospike-client-python/test/old_tests/test_job_info.py/TestScanInfo.setup_method/original