clean up import in settings_tests.py
use textwrap.dedent for better readability