summaryrefslogtreecommitdiff
path: root/tests/server_commands.py
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2013-06-04 21:46:44 +0300
committerYossi Gottlieb <yossigo@gmail.com>2013-06-04 21:46:44 +0300
commit892dcc9b70dec5a3f9ea364886dc9fbda1a5cf17 (patch)
tree4097d37ea32fda47775a6eb636ae803c884ecb50 /tests/server_commands.py
parent7d8674f3edb326f29e4a1552ae674ea3ca6e7808 (diff)
downloadredis-py-892dcc9b70dec5a3f9ea364886dc9fbda1a5cf17.tar.gz
Add CONFIG RESETSTAT support.
Diffstat (limited to 'tests/server_commands.py')
-rw-r--r--tests/server_commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/server_commands.py b/tests/server_commands.py
index 1ae8f80..7dcc221 100644
--- a/tests/server_commands.py
+++ b/tests/server_commands.py
@@ -123,6 +123,12 @@ class ServerCommandsTestCase(unittest.TestCase):
self.assert_(self.client.config_set('dbfilename', rdbname))
self.assertEquals(self.client.config_get()['dbfilename'], rdbname)
+ def test_config_resetstat(self):
+ self.client.ping()
+ self.assert_(int(self.client.info()['total_commands_processed']) > 1)
+ self.client.config_resetstat()
+ self.assertEquals(int(self.client.info()['total_commands_processed']), 1)
+
def test_debug_object(self):
self.client['a'] = 'foo'
debug_info = self.client.debug_object('a')