MCPcopy
hub / github.com/django/django / setUp

Method setUp

tests/gis_tests/distapp/tests.py:40–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 fixtures = ["initial"]
39
40 def setUp(self):
41 # A point we are testing distances with -- using a WGS84
42 # coordinate that'll be implicitly transformed to that to
43 # the coordinate system of the field, EPSG:32140 (Texas South Central
44 # w/units in meters)
45 self.stx_pnt = GEOSGeometry(
46 "POINT (-95.370401017314293 29.704867409475465)", 4326
47 )
48 # Another one for Australia
49 self.au_pnt = GEOSGeometry("POINT (150.791 -34.4919)", 4326)
50
51 def get_names(self, qs):
52 cities = [c.name for c in qs]

Callers

nothing calls this directly

Calls 1

GEOSGeometryClass · 0.90

Tested by

no test coverage detected