예제 #1
0
def test_weather_source_base(consumption_history_one_summer_electricity):
    weather_source = WeatherSourceBase()
    consumptions = consumption_history_one_summer_electricity.get("electricity")
    with pytest.raises(NotImplementedError):
        avg_temps = weather_source.get_average_temperature(consumptions,"degF")
    with pytest.raises(NotImplementedError):
        hdds = weather_source.get_hdd(consumptions,"degF",base=65)