aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_language_base.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-03 08:56:19 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-03 08:56:19 +1200
commitbf71a9a2a03697be4332f51727fa19fc4bcb4c62 (patch)
treeb5706847d408445c2bf9fd3edd55c83edde1e493 /test/test_language_base.py
parenta46e17459d6afa9b9da1e29dd2831c760c8868da (diff)
downloadmitmproxy-bf71a9a2a03697be4332f51727fa19fc4bcb4c62.tar.gz
mitmproxy-bf71a9a2a03697be4332f51727fa19fc4bcb4c62.tar.bz2
mitmproxy-bf71a9a2a03697be4332f51727fa19fc4bcb4c62.zip
base.PathodSpec -> http.PathodResponse
Diffstat (limited to 'test/test_language_base.py')
-rw-r--r--test/test_language_base.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/test_language_base.py b/test/test_language_base.py
index 65c253da..b4778c17 100644
--- a/test/test_language_base.py
+++ b/test/test_language_base.py
@@ -182,32 +182,6 @@ class TestMisc:
s = v.spec()
assert s == v.expr().parseString(s)[0].spec()
- def test_pathodspec(self):
- e = base.PathodSpec.expr()
- v = e.parseString("s'200'")[0]
- assert v.value.val == "200"
- tutils.raises(
- language.ParseException,
- e.parseString,
- "s'foo'"
- )
-
- v = e.parseString('s"200:b@1"')[0]
- assert "@1" in v.spec()
- f = v.freeze({})
- assert "@1" not in f.spec()
-
- def test_pathodspec_freeze(self):
- e = base.PathodSpec(
- base.ValueLiteral(
- "200:b'foo':i10,'\\''".encode(
- "string_escape"
- )
- )
- )
- assert e.freeze({})
- assert e.values({})
-
def test_prevalue(self):
class TT(base.PreValue):
preamble = "m"