':py:obj:`Context.set_session_cache_mode` raises :py:obj:`TypeError` if
called with other than one integer argument.'

def test_set_session_cache_mode_wrong_args(self):

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