def test_exists_many_with_non_existent_keys_in_middle(self):

        self.keys.append(('test', 'demo', 'some_key'))

        for i in range(15, 20):
            key = ('test', 'demo', i)
            rec = {'name': 'name%s' % (str(i)), 'age': i}
            TestExistsMany.client.put(key, rec)
            self.keys.append(key)

        records = TestExistsMany.client.exists_many(self.keys)

        for i in range(15, 20):
            key = ('test', 'demo', i)
            TestExistsMany.client.remove(key)

        assert type(records) == list
        assert len(records) == 11
        assert Counter([x[0][2] for x in records]) == Counter(
            [0, 1, 2, 3, 4, 'some_key', 15, 16, 17, 18, 19])

        for x in records:
            if x[0][2] == 'some_key':
                assert x[1] == None
dataset/ETHPy150Open aerospike/aerospike-client-python/test/old_tests/_test_exists_many.py/TestExistsMany.test_exists_many_with_non_existent_keys_in_middle/original