summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Leeds <randall.leeds@gmail.com>2011-07-11 21:04:37 -0700
committerRandall Leeds <randall.leeds@gmail.com>2011-07-11 21:04:43 -0700
commita913d839b21295fc50fd6692416979aa607bb604 (patch)
treefe6dc8fda1725a6177b66d0840dc1e92b155628b
parenta7c9d06cc635ffde98ab2f29350799e23b00b4b3 (diff)
downloadredis-py-a913d839b21295fc50fd6692416979aa607bb604.tar.gz
remove obsolete server_commands test_(un)watch
-rw-r--r--tests/server_commands.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py
index 6e9fe99..9e3375d 100644
--- a/tests/server_commands.py
+++ b/tests/server_commands.py
@@ -266,36 +266,6 @@ class ServerCommandsTestCase(unittest.TestCase):
self.client.zadd('a', **{'1': 1})
self.assertEquals(self.client.type('a'), 'zset')
- def test_watch(self):
- self.client.set("a", 1)
- self.client.set("b", 2)
-
- self.client.watch("a", "b")
- pipeline = self.client.pipeline()
- pipeline.set("a", 2)
- pipeline.set("b", 3)
- self.assertEquals(pipeline.execute(), [True, True])
-
- self.client.set("b", 1)
- self.client.watch("b")
- self.get_client().set("b", 2)
- pipeline = self.client.pipeline()
- pipeline.set("b", 3)
-
- self.assertRaises(redis.exceptions.WatchError, pipeline.execute)
-
- self.client.set("b", 1)
- self.client.watch("b")
- self.client.set("b", 2)
- pipeline = self.client.pipeline()
- pipeline.set("b", 3)
-
- self.assertEquals(self.client.get("b"), "2")
- self.assertRaises(redis.exceptions.WatchError, pipeline.execute)
-
- def test_unwatch(self):
- self.assertEquals(self.client.unwatch(), True)
-
# LISTS
def make_list(self, name, l):
for i in l: