

def _create_index_objects(self, int_sign=1):
    '\n        Creates a number of index objects to be used in 2i test\n        '
    bucket = self.client.bucket(self.bucket_name)
    o1 = bucket.new(self.randname(), 'data1').add_index('field1_bin', 'val1').add_index('field2_int', (int_sign * 1001)).store()
    o2 = bucket.new(self.randname(), 'data1').add_index('field1_bin', 'val2').add_index('field2_int', (int_sign * 1002)).store()
    o3 = bucket.new(self.randname(), 'data1').add_index('field1_bin', 'val3').add_index('field2_int', (int_sign * 1003)).store()
    o4 = bucket.new(self.randname(), 'data1').add_index('field1_bin', 'val4').add_index('field2_int', (int_sign * 1004)).store()
    return (bucket, o1, o2, o3, o4)

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_2i.py TwoITests._create_index_objects/original