aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_language_actions.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-17 10:43:30 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-17 10:43:30 +1200
commite4feba54330e1afcfb8d48bce8c474659aba281c (patch)
treee3b7369a66f309e8228aac26a4fe8f5e932debcf /test/test_language_actions.py
parent2ee60783b694b6a8555a6afbef21dc1f2ca1f8b9 (diff)
downloadmitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.tar.gz
mitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.tar.bz2
mitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.zip
Introduce and enfoce uniqueness constraints for language components
Diffstat (limited to 'test/test_language_actions.py')
-rw-r--r--test/test_language_actions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_language_actions.py b/test/test_language_actions.py
index 7676fb72..b7361dff 100644
--- a/test/test_language_actions.py
+++ b/test/test_language_actions.py
@@ -8,6 +8,11 @@ def parse_request(s):
return language.parse_requests(s)[0]
+def test_unique_name():
+ assert not actions.PauseAt(0, "f").unique_name
+ assert actions.DisconnectAt(0).unique_name
+
+
class TestDisconnects:
def test_parse_response(self):
a = language.parse_response("400:d0").actions[0]