def test_add_extra_chain_cert_invalid_cert(self):
    '\n        `Context.add_extra_chain_cert` raises `TypeError` if called with an\n        object which is not an instance of `X509`.\n        '
    context = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        context.add_extra_chain_cert(object())
`Context.add_extra_chain_cert` raises `TypeError` if called with an
object which is not an instance of `X509`.
def test_add_extra_chain_cert_invalid_cert(self):
    '\n        `Context.add_extra_chain_cert` raises `TypeError` if called with an\n        object which is not an instance of `X509`.\n        '
    context = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        context.add_extra_chain_cert(object())