':py:obj:`Context.add_extra_chain_cert` raises :py:obj:`TypeError` if called with
other than one argument or if called with an object which is not an
instance of :py:obj:`X509`.'

def test_add_extra_chain_cert_invalid_cert(self):

    context = Context(TLSv1_METHOD)
    self.assertRaises(TypeError, context.add_extra_chain_cert)
    self.assertRaises(TypeError, context.add_extra_chain_cert, object())
    self.assertRaises(TypeError, context.add_extra_chain_cert, object(), object())
