Fix the Djblets utils module tests on Django 1.7+.

Review Request #7421 — Created June 13, 2015 and submitted — Latest diff uploaded

Information

Djblets
release-0.9.x
2543a5f...

Reviewers

The utils module had a number of template-related tests that no longer
work in Django. We were digging into the internals, trying to construct
tags manually, instead of through a template string. Now, we're using
template strings, restoring compatibility across all versions.

There was also a docstring being executed in the django.core.files.locks
compatibility module, which we didn't want to execute. This has been
removed.

Utility unit tests pass on Django 1.6 and 1.8.