def test_use_certificate_wrong_args(self):
    '\n        `Context.use_certificate_wrong_args` raises `TypeError` when not passed\n        exactly one `OpenSSL.crypto.X509` instance as an argument.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.use_certificate('hello, world')
`Context.use_certificate_wrong_args` raises `TypeError` when not passed
exactly one `OpenSSL.crypto.X509` instance as an argument.
def test_use_certificate_wrong_args(self):
    '\n        `Context.use_certificate_wrong_args` raises `TypeError` when not passed\n        exactly one `OpenSSL.crypto.X509` instance as an argument.\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        ctx.use_certificate('hello, world')