MCPcopy
hub / github.com/django/django / test_access

Method test_access

tests/gis_tests/test_measure.py:45–49  ·  view source on GitHub ↗

Testing access in different units

(self)

Source from the content-addressed store, hash-verified

43 D(ha=100)
44
45 def test_access(self):
46 "Testing access in different units"
47 d = D(m=100)
48 self.assertEqual(d.km, 0.1)
49 self.assertAlmostEqual(d.ft, 328.084, 3)
50
51 def test_access_invalid(self):
52 "Testing access in invalid units"

Callers

nothing calls this directly

Calls 1

DClass · 0.50

Tested by

no test coverage detected