fiorix/txredisapi — pull request #34 by dgvncsz0f (2012-12-21 12:44:34+00:00)
Title: dealing with some edge cases and documenting the new WATCH functionality

This patch deals with the following scenarios, which would ended up
cleaning the inTransaction prematurely:

1. UNWATCH after MULTI

t = multi
t.unwatch

2. WATCH, MULTI (with keys)

t = watch
t.multi("foobar")
t.unwatch

3 . MULTI + WATCH

t = multi
t.watch # this is invalid, but
will change the _unwatch_cc
to a function that would clear
the inTransaction state

I've also dropped a couple more tests, notably testing WATCH with ConnectionPool.