コード例 #1
0
ファイル: test_meter_library.py プロジェクト: gunduru/eemeter
def test_average_daily_usage(generated_consumption_history_1):
    ch,params = generated_consumption_history_1
    meter = AverageDailyUsage()
    result = meter.evaluate(consumption_history=ch,
                            fuel_type="electricity",
                            fuel_unit_str="kWh")
    assert result["average_daily_usages"] is not None
コード例 #2
0
def test_average_daily_usage(generated_consumption_data_1):
    cd, params = generated_consumption_data_1
    meter = AverageDailyUsage()
    result = meter.evaluate_raw(consumption_data=cd, energy_unit_str="kWh")
    assert result["average_daily_usages"] is not None
コード例 #3
0
def test_average_daily_usage(generated_consumption_data_1):
    cd,params = generated_consumption_data_1
    meter = AverageDailyUsage()
    result = meter.evaluate_raw(consumption_data=cd,
                            energy_unit_str="kWh")
    assert result["average_daily_usages"] is not None