Skip to content

Commit

Permalink
add a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
thefab committed Sep 5, 2014
1 parent 9b2750a commit 5737402
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ def test_protocol5(self):
res = format_args_in_redis_protocol("SET", "key", 1)
self.assertEquals(res, b"*3\r\n$3\r\nSET\r\n$3\r\nkey\r\n"
b"$1\r\n1\r\n")

def test_protocol_exception(self):
self.assertRaises(Exception, format_args_in_redis_protocol, ["foo"])

0 comments on commit 5737402

Please sign in to comment.