':py:obj:`Context.set_passwd_cb` raises :py:obj:`TypeError` if called with the
wrong arguments or with a non-callable first argument.'

def test_set_passwd_cb_wrong_args(self):

    context = Context(TLSv1_METHOD)
    self.assertRaises(TypeError, context.set_passwd_cb)
    self.assertRaises(TypeError, context.set_passwd_cb, None)
    self.assertRaises(TypeError, context.set_passwd_cb, (lambda : None), None, None)
