Added assertion error message for test_make_line

Refs #23842. Thanks Thomas Chaumeny for the suggestion.
This commit is contained in:
Claude Paroz 2014-11-17 14:17:08 +01:00
parent 684b2077b3
commit fc36437434
1 changed files with 3 additions and 1 deletions

View File

@ -629,7 +629,9 @@ class GeoQuerySetTest(TestCase):
)
# We check for equality with a tolerance of 10e-5 which is a lower bound
# of the precisions of ref_line coordinates
self.assertTrue(ref_line.equals_exact(City.objects.make_line(), tolerance=10e-5))
line = City.objects.make_line()
self.assertTrue(ref_line.equals_exact(line, tolerance=10e-5),
"%s != %s" % (ref_line, line))
@skipUnlessDBFeature("has_num_geom_method")
def test_num_geom(self):