tests: use `dedent` with `extra_settings`, indent
django_testdir: use `ensure=True` with `write` for `create_*`
Merge pull request #154 from blueyed/testdir-use-dedent

tests: use more dedent and indenting