[1.5.x] Fixed a dependence on set-ordering in tests
[1.5.x] Fixed a dependence on set-ordering in tests

Backport of 1ae64e96c161229a74efc4235917dcaae7e9cd05 from master

hasadna/django,alx-eu/django,bliti/django-nonrel-1.5,alx-eu/django,alx-eu/django,bliti/django-nonrel-1.5,hasadna/django,imtapps/django-imt-fork,ccn-2m/django,hasadna/django,bliti/django-nonrel-1.5,imtapps/django-imt-fork,ccn-2m/django,alx-eu/django,ccn-2m/django,imtapps/django-imt-fork,ccn-2m/django