def test_geo_api(self): x, y = weather.geo_api("Boston, MA, US") print(x, y) self.assertIsNotNone(x) self.assertIsNotNone(y) x, y = weather.geo_api("Boston, US") print(x, y) self.assertIsNotNone(x) self.assertIsNotNone(y) x, y = weather.geo_api("boston") print(x, y) self.assertIsNotNone(x) self.assertIsNotNone(y)
def test_weather_geo_1(self): # 702610-26411 lat, lng = weather.geo_api(address="BOSTON,MA,US") weather_r = weather.weather_geo(lat=lat, lng=lng, start_dt="1903-01-01", end_dt="1948-01-01", sample_rate="r") self.assertFalse(weather_r.empty)