diff options
Diffstat (limited to 'tests/server_commands.py')
-rw-r--r-- | tests/server_commands.py | 30 |
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: |