Fixed tests in Django 1.7 + Python 3.4