summaryrefslogtreecommitdiff
path: root/tests/test_monitor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_monitor.py')
-rw-r--r--tests/test_monitor.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_monitor.py b/tests/test_monitor.py
new file mode 100644
index 0000000..da0c992
--- /dev/null
+++ b/tests/test_monitor.py
@@ -0,0 +1,10 @@
+from __future__ import unicode_literals
+
+
+class TestPipeline(object):
+ def test_monitor(self, r):
+ with r.monitor() as m:
+ r.ping()
+ response = m.next_command()
+ assert set(response.keys()) == {'time', 'db', 'client_address',
+ 'client_port', 'command'}