summaryrefslogtreecommitdiff
path: root/tests/server_commands.py
diff options
context:
space:
mode:
authorandy <andy@andymccurdy.com>2011-10-10 13:45:55 -0700
committerandy <andy@andymccurdy.com>2011-10-10 13:45:55 -0700
commitfb83cd05246a6c0ad297baa3d6571a97ecb86199 (patch)
tree00570d7e0d8fb8e441cceba11458d32042c01bbf /tests/server_commands.py
parent32256bb220923d45235f8dd6a4c0dfc1ff0a65f9 (diff)
downloadredis-py-fb83cd05246a6c0ad297baa3d6571a97ecb86199.tar.gz
added the ECHO command for completeness
Diffstat (limited to 'tests/server_commands.py')
-rw-r--r--tests/server_commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py
index 771e0b3..819bedf 100644
--- a/tests/server_commands.py
+++ b/tests/server_commands.py
@@ -81,6 +81,9 @@ class ServerCommandsTestCase(unittest.TestCase):
self.assert_(self.client.config_set('dbfilename', rdbname))
self.assertEquals(self.client.config_get()['dbfilename'], rdbname)
+ def test_echo(self):
+ self.assertEquals(self.client.echo('foo bar'), 'foo bar')
+
def test_info(self):
self.client['a'] = 'foo'
self.client['b'] = 'bar'