From 202b5c4b1a9245cf10c237788cda076fd16f59c0 Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Wed, 3 Sep 2014 13:02:39 -0400 Subject: [PATCH] Fix the incr test --- tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests.py b/tests.py index dd6bc39..6eabe5f 100644 --- a/tests.py +++ b/tests.py @@ -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)