aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-05-15 18:16:42 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-05-15 18:16:42 +0200
commit00fd243810954b1ea7c108482513a7e92f2e8000 (patch)
tree31b8dc1465613fae3096281881d1d6e9910e48bb /test
parenta17a53269d23d0bde74c340c9df4b1983b70144b (diff)
downloadmitmproxy-00fd243810954b1ea7c108482513a7e92f2e8000.tar.gz
mitmproxy-00fd243810954b1ea7c108482513a7e92f2e8000.tar.bz2
mitmproxy-00fd243810954b1ea7c108482513a7e92f2e8000.zip
fix up error messages
Diffstat (limited to 'test')
-rw-r--r--test/test_examples.py4
-rw-r--r--test/test_protocol_http.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index 014b1d68..fa57b7eb 100644
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -3,8 +3,8 @@ import glob
from libmproxy.proxy import config
import tservers
-example_dir = utils.Data("libmproxy").path("../examples/")
-scripts = glob.glob("%s*.py" % example_dir)
+example_dir = utils.Data("libmproxy").path("../examples")
+scripts = glob.glob("%s/*.py" % example_dir)
tmaster = tservers.TestMaster(config.ProxyConfig())
diff --git a/test/test_protocol_http.py b/test/test_protocol_http.py
index 290d82a1..4026e79a 100644
--- a/test/test_protocol_http.py
+++ b/test/test_protocol_http.py
@@ -7,7 +7,7 @@ import tutils, tservers
def test_HttpAuthenticationError():
x = HttpAuthenticationError({"foo": "bar"})
assert str(x)
- assert "foo" in x.auth_headers
+ assert "foo" in x.headers
def test_stripped_chunked_encoding_no_content():