def test_incr_multi(self):
        keys = self.gen_key_list(amount=5, prefix="incr_multi")

        def _multi_lim_assert(expected):
            for k, v in self.cb.get_multi(keys).items():
                self.assertTrue(k in keys)
                self.assertEqual(v.value, expected)

        self.cb.remove_multi(keys, quiet=True)
        self.cb.counter_multi(keys, initial=5)
        _multi_lim_assert(5)

        self.cb.counter_multi(keys)
        _multi_lim_assert(6)

        self.cb.counter_multi(keys, delta=-1)
        _multi_lim_assert(5)

        self.cb.counter_multi(keys, delta=10)
        _multi_lim_assert(15)

        self.cb.counter_multi(keys, delta=-6)
        _multi_lim_assert(9)

        self.cb.remove(keys[0])

        self.assertRaises(NotFoundError, self.cb.counter_multi, keys)
dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/tests/cases/arithmetic_t.py/ArithmeticTest.test_incr_multi/original