def test_update(self):
        self.client.set('/foo', 3)
        c = self.client.get('/foo')
        c.value = int(c.value) + 3
        self.client.update(c)
        newres = self.client.get('/foo')
        self.assertEquals(newres.value, u'6')
        self.assertRaises(ValueError, self.client.update, c)
INTEGRATION: update a value
dataset/ETHPy150Open jplana/python-etcd/src/etcd/tests/integration/test_simple.py/TestSimple.test_update