def test_trivial_set(self):
        rv = self.cb.upsert(self.gen_key(), 'value1')
        self.assertTrue(rv)
        self.assertTrue(rv.cas > 0)
        rv = self.cb.upsert(self.gen_key(), 'value2')
        self.assertTrue(rv.cas > 0)
dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/tests/cases/set_t.py/UpsertTest.test_trivial_set/original