def rectangle_contains(inner, outer):
    """
    Returns True if ``inner`` rect is contained in ``outer`` rect.
    """
    ix, iy, iw, ih = inner
    ox, oy, ow, oh = outer
    return ox <= ix and oy <= iy and ox + ow >= ix + iw and oy + oh >= iy + ih
