Fixing django tests for py 2.6