Avoid running tests against Django master on Python < 2.7
Rely on unittest module when available since it's pending deprecation on Django > 1.7.