Exemplo n.º 1
0
    def setUp(self):
        self.params = {
            u'latitude': 38.897669444444,
            u'altitude': None,
            u'globe': u'http://www.wikidata.org/entity/Q2',
            u'longitude': -77.03655,
            u'precision': 2.7777777777778e-06
        }

        self.coordinate = Coordinate(
            38.897669444444,
            -77.03655,
            precision=2.7777777777778e-06,
            entity='http://www.wikidata.org/entity/Q2')
Exemplo n.º 2
0
 def test_precision(self):
     """Test precision attribute."""
     self.assertEqual(self.coordinate.precision, 2.7777777777778e-06)
     coord = Coordinate(38.897669444444, -77.03655, dim=100)
     self.assertEqual(coord.precision, 0.0011542482624706185)