runtests adapted for Django 1.7