Fix test suite for Django 1.6