diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-17 10:43:30 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-17 10:43:30 +1200 |
commit | e4feba54330e1afcfb8d48bce8c474659aba281c (patch) | |
tree | e3b7369a66f309e8228aac26a4fe8f5e932debcf /test/test_language_http.py | |
parent | 2ee60783b694b6a8555a6afbef21dc1f2ca1f8b9 (diff) | |
download | mitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.tar.gz mitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.tar.bz2 mitmproxy-e4feba54330e1afcfb8d48bce8c474659aba281c.zip |
Introduce and enfoce uniqueness constraints for language components
Diffstat (limited to 'test/test_language_http.py')
-rw-r--r-- | test/test_language_http.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_language_http.py b/test/test_language_http.py index a7313bfb..17bce802 100644 --- a/test/test_language_http.py +++ b/test/test_language_http.py @@ -342,3 +342,11 @@ def test_pathodspec_freeze(): ) assert e.freeze({}) assert e.values({}) + + +def test_unique_components(): + tutils.raises( + "multiple body clauses", + language.parse_response, + "400:b@1:b@1" + ) |