':py:obj:`Context.use_certificate_wrong_args` raises :py:obj:`TypeError`
when not passed exactly one :py:obj:`OpenSSL.crypto.X509` instance as an
argument.'

def test_use_certificate_wrong_args(self):

    ctx = Context(TLSv1_METHOD)
    self.assertRaises(TypeError, ctx.use_certificate)
    self.assertRaises(TypeError, ctx.use_certificate, 'hello,    world')
    self.assertRaises(TypeError, ctx.use_certificate, X509(), 'hello,    world')
