From a913d839b21295fc50fd6692416979aa607bb604 Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Mon, 11 Jul 2011 21:04:37 -0700 Subject: remove obsolete server_commands test_(un)watch --- tests/server_commands.py | 30 ------------------------------ 1 file changed, 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: -- cgit v1.2.1