aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/addons/test_keepserving.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/addons/test_keepserving.py')
-rw-r--r--test/mitmproxy/addons/test_keepserving.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_keepserving.py b/test/mitmproxy/addons/test_keepserving.py
new file mode 100644
index 00000000..70f7e1e6
--- /dev/null
+++ b/test/mitmproxy/addons/test_keepserving.py
@@ -0,0 +1,10 @@
+from mitmproxy.addons import keepserving
+from mitmproxy.test import taddons
+
+
+def test_keepserving():
+ ks = keepserving.KeepServing()
+
+ with taddons.context() as tctx:
+ ks.event_processing_complete()
+ assert tctx.master.should_exit.is_set()