Refactor django tests.
Reproduce failure with StringOrigin in template rendering.