def test_use_certificate_uninitialized(self):
    '\n        `Context.use_certificate` raises `OpenSSL.SSL.Error` when passed a\n        `OpenSSL.crypto.X509` instance which has not been initialized\n        (ie, which does not actually have any certificate data).\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(Error):
        ctx.use_certificate(X509())
`Context.use_certificate` raises `OpenSSL.SSL.Error` when passed a
`OpenSSL.crypto.X509` instance which has not been initialized
(ie, which does not actually have any certificate data).
def test_use_certificate_uninitialized(self):
    '\n        `Context.use_certificate` raises `OpenSSL.SSL.Error` when passed a\n        `OpenSSL.crypto.X509` instance which has not been initialized\n        (ie, which does not actually have any certificate data).\n        '
    ctx = Context(TLSv1_METHOD)
    with pytest.raises(Error):
        ctx.use_certificate(X509())