Fix the incr test

This commit is contained in:
Gavin M. Roy 2014-09-03 13:02:39 -04:00
parent aa4cb3e06b
commit 202b5c4b1a

View file

@ -63,7 +63,8 @@ class ClientIntegrationTests(unittest.TestCase):
raise unittest.SkipTest('No memcached daemon present')
def test_that_incr_returns_one(self):
self.assertEqual(self.client.incr('test-incr'), 1)
self.client.set('test-incr', 2)
self.assertEqual(self.client.incr('test-incr'), 3)
def test_that_set_key_is_gettable(self):
self.client.set('foo', 'bar', 60)