diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-03-08 15:47:27 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-03-08 15:47:27 +0100 |
commit | 2b01c4eee7a52dfb5fd30bb9b248cec87d563db9 (patch) | |
tree | 72604de5152bdf15147a78e03a669a207baeac95 /test/test_app.py | |
parent | 3032672f10c727623ee085d04d623901dac856df (diff) | |
parent | 221973aff6553ffb1d40859c5d35b88d959f9718 (diff) | |
download | mitmproxy-2b01c4eee7a52dfb5fd30bb9b248cec87d563db9.tar.gz mitmproxy-2b01c4eee7a52dfb5fd30bb9b248cec87d563db9.tar.bz2 mitmproxy-2b01c4eee7a52dfb5fd30bb9b248cec87d563db9.zip |
Merge branch 'master' of github.com:mitmproxy/mitmproxy
Diffstat (limited to 'test/test_app.py')
-rw-r--r-- | test/test_app.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test_app.py b/test/test_app.py index f0eab7cc..0b6ed14c 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -9,11 +9,8 @@ class TestApp(tservers.HTTPProxTest): assert self.app("/").status_code == 200 def test_cert(self): - path = tutils.test_data.path("data/confdir/") + "mitmproxy-ca-cert." with tutils.tmpdir() as d: for ext in ["pem", "p12"]: resp = self.app("/cert/%s" % ext) assert resp.status_code == 200 - with open(path + ext, "rb") as f: - assert resp.content == f.read() - + assert resp.content |