causes/mock_redis — pull request #24 by clifff (2012-08-21 14:59:10+00:00)
Title: Added zcount support for -inf and +inf

While testing another project I got this error while passing "+inf" to mock_redis.zcount

RuntimeError: ERR min or max is not a double

Since Redis itself doesn't have this limitation, I allow zcount to accept "-inf" and "+inf" as well. The zset in_range method seems to already appropriately check these conditions, so I went ahead and used that.

Tests are included and run clean. Please let me know if you have any questions!