From 00fd243810954b1ea7c108482513a7e92f2e8000 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 15 May 2014 18:16:42 +0200 Subject: fix up error messages --- test/test_examples.py | 4 ++-- test/test_protocol_http.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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(): -- cgit v1.2.3