def test_set_big_object(self):
        set_ = self.mc.set
        # libmemcached is slow to store large object, so limit the
        # number of objects here to make tests not stall.
        pairs = [(i % 'key%d', BigObject()) for i in xrange(100)]

        def test():
            for key, value in pairs:
                set_(key, value)

        run_test(test, 'test_set_big_object (100 objects)')

        for key, value in pairs:
            self.mc.delete(key)
dataset/ETHPy150Open douban/python-libmemcached/benchmark.py/Benchmark.test_set_big_object/swapped operands of `%`