def test_set_mode_wrong_args(self):
    '\n        `Context.set_mode` raises `TypeError` if called with\n        a non-`int` argument.\n        '
    context = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        context.set_mode(None)
`Context.set_mode` raises `TypeError` if called with
a non-`int` argument.
def test_set_mode_wrong_args(self):
    '\n        `Context.set_mode` raises `TypeError` if called with\n        a non-`int` argument.\n        '
    context = Context(TLSv1_METHOD)
    with pytest.raises(TypeError):
        context.set_mode(None)