Ejemplo n.º 1
0
    def test_geocode_location(self):
        geocode = GeoCodeExtension()
        self.assertIsNotNone(geocode)

        result = geocode.execute(self.test_client.bot, "testid", "LOCATION KINGHORN")
        self.assertIsNotNone(result)
        self.assertEquals("LATITUDE DEC 56 FRAC 0720397 LONGITUDE DEC -3 FRAC 1752001", result)
Ejemplo n.º 2
0
    def test_geocode_postcode2(self):
        geocode = GeoCodeExtension()
        self.assertIsNotNone(geocode)

        result = geocode.execute(self.test_client.bot, "testid", "POSTCODE2 KY3 9UR")
        self.assertIsNotNone(result)
        self.assertEquals("LATITUDE DEC 56 FRAC 0720397 LONGITUDE DEC -3 FRAC 1752001", result)