diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-06-04 15:57:22 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-06-04 15:57:22 +0200 |
commit | 2355c29c0ef59019950da3a0410cd91bfeedb872 (patch) | |
tree | 58a569bc4e491708fa7bcc4ceea9306d942cbc36 /test/pathod/test_language_base.py | |
parent | 1c8223112900c26386560677134092cab5dbeea6 (diff) | |
parent | f45765a236f058a9d1eece7e5a5216e6fbcdecbe (diff) | |
download | mitmproxy-2355c29c0ef59019950da3a0410cd91bfeedb872.tar.gz mitmproxy-2355c29c0ef59019950da3a0410cd91bfeedb872.tar.bz2 mitmproxy-2355c29c0ef59019950da3a0410cd91bfeedb872.zip |
Merge pull request #1209 from dufferzafar/pathod-lang-base
Python 3 - pathod.language.base
Diffstat (limited to 'test/pathod/test_language_base.py')
-rw-r--r-- | test/pathod/test_language_base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pathod/test_language_base.py b/test/pathod/test_language_base.py index 47e51bb0..075dc2b8 100644 --- a/test/pathod/test_language_base.py +++ b/test/pathod/test_language_base.py @@ -38,7 +38,7 @@ class TestTokValueNakedLiteral: class TestTokValueLiteral: - def test_espr(self): + def test_expr(self): v = base.TokValueLiteral("foo") assert v.expr() assert v.val == b"foo" @@ -132,7 +132,7 @@ class TestTokValueFile: with tutils.tmpdir() as t: p = os.path.join(t, "path") with open(p, "wb") as f: - f.write("x" * 10000) + f.write(b"x" * 10000) assert v.get_generator(language.Settings(staticdir=t)) @@ -207,13 +207,13 @@ class TestMisc: p = os.path.join(t, "path") s = base.Settings(staticdir=t) with open(p, "wb") as f: - f.write("a" * 20) + f.write(b"a" * 20) v = e.parseString("m<path")[0] tutils.raises("invalid value length", v.values, s) p = os.path.join(t, "path") with open(p, "wb") as f: - f.write("a" * 4) + f.write(b"a" * 4) v = e.parseString("m<path")[0] assert v.values(s) |