summaryrefslogtreecommitdiff
path: root/tests/server_commands.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2013-06-04 12:25:16 -0700
committerAndy McCurdy <andy@andymccurdy.com>2013-06-04 12:25:16 -0700
commit58e6ebfcbce165d1170f01f64e525ce3e9fba9eb (patch)
tree4097d37ea32fda47775a6eb636ae803c884ecb50 /tests/server_commands.py
parent7d8674f3edb326f29e4a1552ae674ea3ca6e7808 (diff)
parent892dcc9b70dec5a3f9ea364886dc9fbda1a5cf17 (diff)
downloadredis-py-58e6ebfcbce165d1170f01f64e525ce3e9fba9eb.tar.gz
Merge pull request #352 from yossigo/config_resetstat
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')