mirror of
https://github.com/sprockets/sprockets.clients.memcached.git
synced 2024-11-29 03:00:23 +00:00
Fix the incr test
This commit is contained in:
parent
aa4cb3e06b
commit
202b5c4b1a
1 changed files with 2 additions and 1 deletions
3
tests.py
3
tests.py
|
@ -63,7 +63,8 @@ class ClientIntegrationTests(unittest.TestCase):
|
||||||
raise unittest.SkipTest('No memcached daemon present')
|
raise unittest.SkipTest('No memcached daemon present')
|
||||||
|
|
||||||
def test_that_incr_returns_one(self):
|
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):
|
def test_that_set_key_is_gettable(self):
|
||||||
self.client.set('foo', 'bar', 60)
|
self.client.set('foo', 'bar', 60)
|
||||||
|
|
Loading…
Reference in a new issue