def test_shutdown_wrong_args(self):
    '\n        `Connection.set_shutdown` raises `TypeError` if called with arguments\n        other than integers.\n        '
    connection = Connection(Context(TLSv1_METHOD), None)
    with pytest.raises(TypeError):
        connection.set_shutdown(None)
`Connection.set_shutdown` raises `TypeError` if called with arguments
other than integers.
def test_shutdown_wrong_args(self):
    '\n        `Connection.set_shutdown` raises `TypeError` if called with arguments\n        other than integers.\n        '
    connection = Connection(Context(TLSv1_METHOD), None)
    with pytest.raises(TypeError):
        connection.set_shutdown(None)