fix test for python 2.6 + django 1.2