diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2018-11-12 09:34:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 09:34:16 +0100 |
commit | 6f893a83c090f049e7cebe3335e7a2a32695946b (patch) | |
tree | 8346169e6f427c24f3f14f567476fe39f57d3085 /test | |
parent | d4f4cfe2252ac82bc361c098e7fba48d70466890 (diff) | |
parent | cda4248610a802c8e97b9917fd44d264dcb06584 (diff) | |
download | mitmproxy-6f893a83c090f049e7cebe3335e7a2a32695946b.tar.gz mitmproxy-6f893a83c090f049e7cebe3335e7a2a32695946b.tar.bz2 mitmproxy-6f893a83c090f049e7cebe3335e7a2a32695946b.zip |
Merge pull request #3382 from abhigyank/org
Change variable o to organization for generated certficates.
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_certs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mitmproxy/test_certs.py b/test/mitmproxy/test_certs.py index 9b4c9516..b8ad1d36 100644 --- a/test/mitmproxy/test_certs.py +++ b/test/mitmproxy/test_certs.py @@ -134,7 +134,7 @@ class TestDummyCert: ) assert r.cn == b"foo.com" assert r.altnames == [b'one.com', b'two.com', b'*.three.com'] - assert r.o == b"Foo Ltd." + assert r.organization == b"Foo Ltd." r = certs.dummy_cert( ca.default_privatekey, @@ -144,7 +144,7 @@ class TestDummyCert: None ) assert r.cn is None - assert r.o is None + assert r.organization is None assert r.altnames == [] @@ -156,7 +156,7 @@ class TestCert: c1 = certs.Cert.from_pem(d) assert c1.cn == b"google.com" assert len(c1.altnames) == 436 - assert c1.o == b"Google Inc" + assert c1.organization == b"Google Inc" with open(tdata.path("mitmproxy/net/data/text_cert_2"), "rb") as f: d = f.read() |