Ticket #30552: 30552.diff

File 30552.diff, 916 bytes (added by Mariusz Felisiak, 5 years ago)

Simple test.

  • tests/gis_tests/distapp/tests.py

    diff --git a/tests/gis_tests/distapp/tests.py b/tests/gis_tests/distapp/tests.py
    index 67558582dc..b673bff8ae 100644
    a b class DistanceTest(TestCase):  
    125125        qs = SouthTexasZipcode.objects.exclude(name='77005').filter(poly__distance_lte=(z.poly, D(m=300)))
    126126        self.assertEqual(['77002', '77025', '77401'], self.get_names(qs))
    127127
     128    @skipUnlessDBFeature("supports_distances_lookups", "supports_distance_geodetic")
     129    def test_geodetic_distance_lookups_reverse(self):
     130        line = GEOSGeometry('LINESTRING(144.9630 -37.8143,151.2607 -33.8870)', 4326)
     131        self.assertEqual(line.srid, 4326)
     132        line.reverse()
     133        self.assertEqual(line.srid, 4326)
     134
    128135    @skipUnlessDBFeature("supports_distances_lookups", "supports_distance_geodetic")
    129136    def test_geodetic_distance_lookups(self):
    130137        """
Back to Top