liberation/redis-limpyd — pull request #32 by twidi (2012-07-31 18:52:26+00:00)
Title: Add a "assertNumCommands" method for tests

It will count the total commands occured, excepted the "info" commands used to make this count.

Usage:

```python
with self.assertNumCommands(2):
obj.field.set(1)
obj.field.get
```

By the way, this pull request correct tests not working with redis >= 2.4.7 as the "keyspace_hists" and "keyspaces_misses" meaning in redis.info() has changed.