Author: jbronn
Date: 2010-11-06 11:41:53 -0500 (Sat, 06 Nov 2010)
New Revision: 14476
Modified:
django/trunk/django/contrib/gis/geos/tests/test_geos.py
Log:
Fixed brittle test case for `GEOSGeometry.valid_reason`.
Modified: django/trunk/django/contrib/gis/geos/tests/test_geos.py
===================================================================
--- django/trunk/django/contrib/gis/geos/tests/test_geos.py 2010-11-06
16:32:08 UTC (rev 14475)
+++ django/trunk/django/contrib/gis/geos/tests/test_geos.py 2010-11-06
16:41:53 UTC (rev 14476)
@@ -934,7 +934,7 @@
self.assert_(not g.valid)
self.assert_(isinstance(g.valid_reason, basestring))
- self.assertEqual(g.valid_reason, "Too few points in geometry
component[0 0]")
+ self.assert_(g.valid_reason.startswith("Too few points in geometry
component"))
print "\nEND - expecting GEOS_NOTICE; safe to ignore.\n"
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.