diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2014-03-02 13:50:19 +1300 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2014-03-02 13:50:19 +1300 |
| commit | 7788391903ef67ed1e779560936d60402159f8f5 (patch) | |
| tree | 94e6e73f0cd6aa89dc2c6af0889edf233e0d7769 /test | |
| parent | 3443bae94e090b0bf12005ef4f0ca474bd903fb1 (diff) | |
| download | mitmproxy-7788391903ef67ed1e779560936d60402159f8f5.tar.gz mitmproxy-7788391903ef67ed1e779560936d60402159f8f5.tar.bz2 mitmproxy-7788391903ef67ed1e779560936d60402159f8f5.zip | |
Minor improvement to CertStore interface
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_certutils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_certutils.py b/test/test_certutils.py index 7a00caca..4fab69e6 100644 --- a/test/test_certutils.py +++ b/test/test_certutils.py @@ -21,16 +21,16 @@ class TestCertStore: with tutils.tmpdir() as d: ca = os.path.join(d, "ca") assert certutils.dummy_ca(ca) - c = certutils.CertStore() + c = certutils.CertStore(ca) def test_create_tmp(self): with tutils.tmpdir() as d: ca = os.path.join(d, "ca") assert certutils.dummy_ca(ca) - c = certutils.CertStore() - assert c.get_cert("foo.com", [], ca) - assert c.get_cert("foo.com", [], ca) - assert c.get_cert("*.foo.com", [], ca) + c = certutils.CertStore(ca) + assert c.get_cert("foo.com", []) + assert c.get_cert("foo.com", []) + assert c.get_cert("*.foo.com", []) class TestDummyCert: |
