aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkira0204 <rshtmudgal@gmail.com>2018-03-07 06:34:16 +0530
committerkira0204 <rshtmudgal@gmail.com>2018-03-07 06:34:16 +0530
commit57197c3e6cad1c1ef16e3538c0032ce94e239553 (patch)
tree8b4faed1d4acfe911ad61e7f657d96b5bb123d98
parentbe50f3f4810c70e0050a17cefee6a69bdc76e271 (diff)
downloadmitmproxy-57197c3e6cad1c1ef16e3538c0032ce94e239553.tar.gz
mitmproxy-57197c3e6cad1c1ef16e3538c0032ce94e239553.tar.bz2
mitmproxy-57197c3e6cad1c1ef16e3538c0032ce94e239553.zip
using asserts
-rw-r--r--test/mitmproxy/test_command.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py
index ffbb20af..6b8bc7b0 100644
--- a/test/mitmproxy/test_command.py
+++ b/test/mitmproxy/test_command.py
@@ -321,6 +321,9 @@ def test_collect_commands():
c = command.CommandManager(tctx.master)
a = TDec()
c.collect_commands(a)
+ assert not "cmd1" in c.commands
+ assert not "cmd2" in c.commands
+ assert not "empty" in c.commands
def test_decorator():