why not use ``nested`` for the two context managers? or maybe merge them into ``override_settings`` or something?