Commits

zyegfryed  committed c99f350

Fixed test without using iterator.

  • Participants
  • Parent commits 68463fb

Comments (0)

Files changed (1)

         addr = '1600 amphitheatre mountain view ca'
         g = Geocoder()
         data = g.geocode(addr)
-        results = GeocoderResult(data)
-        result = results.next()
+        result = GeocoderResult(data)
 
         self.assertEqual(result.country__long_name, 'United States')
         self.assertEqual(result.postal_code, '94043')
         lat, lng = 40.714224, -73.961452
         g = Geocoder()
         data = g.reverse_geocode(lat, lng)
-        results = GeocoderResult(data)
-        result = results.next()
+        result = GeocoderResult(data)
 
         self.assertEqual(result.country__long_name, 'United States')
         self.assertEqual(result.postal_code, '11211')