def test_clean(self):
     """Tests validation."""
     pos = AerialPosition(latitude=0, longitude=0, altitude_msl=0)
     pos.full_clean()
예제 #2
0
 def test_clean(self):
     """Tests validation."""
     gps = GpsPosition(latitude=0, longitude=0)
     gps.save()
     pos = AerialPosition(gps_position=gps, altitude_msl=0)
     pos.full_clean()