jamesls/fakeredis — pull request #2 by pdc (2012-04-07 09:51:25+00:00)
Title: Add pipeline method

Here’s a fake version of the Redis-Py Pipeline class that wraps use of the WATCH, MULTI, and EXECUTE commands.

This should be enough to run code that uses the pipeline protocol in a test against a fake Redis. It makes some attempts to raise the right exception when WATCH conflicts occur, but probably would need to be extended to do detailed testing of potential race conditions.