Removed unnecessary order_by() from a GIS test that crashed Oracle.

Oracle cannot order_by() a TextField; refs #23504.
This commit is contained in:
Tim Graham 2014-09-18 12:41:58 -04:00
parent ad491ecc6e
commit 7fc13178d6
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ class LayerMapTest(TestCase):
lm = LayerMapping(City, city_shp, mapping) lm = LayerMapping(City, city_shp, mapping)
lm.save(silent=True, strict=True) lm.save(silent=True, strict=True)
self.assertEqual(City.objects.count(), 3) self.assertEqual(City.objects.count(), 3)
self.assertEqual(City.objects.all().order_by('name_txt')[0].name_txt, "Houston") self.assertEqual(City.objects.get(name='Houston').name_txt, "Houston")
def test_encoded_name(self): def test_encoded_name(self):
""" Test a layer containing utf-8-encoded name """ """ Test a layer containing utf-8-encoded name """