(self, tdata)
| 322 | assert c1 != c2 |
| 323 | |
| 324 | def test_convert(self, tdata): |
| 325 | with open(tdata.path("mitmproxy/net/data/text_cert"), "rb") as f: |
| 326 | d = f.read() |
| 327 | c = certs.Cert.from_pem(d) |
| 328 | |
| 329 | assert c == certs.Cert.from_pem(c.to_pem()) |
| 330 | assert c == certs.Cert.from_state(c.get_state()) |
| 331 | with pytest.deprecated_call(): |
| 332 | assert c == certs.Cert.from_pyopenssl(c.to_pyopenssl()) |
| 333 | |
| 334 | assert c == certs.Cert(c.to_cryptography()) |
| 335 | |
| 336 | @pytest.mark.parametrize( |
| 337 | "filename,name,bits", |
nothing calls this directly
no test coverage detected