Esempio n. 1
0
def test_no_ext_grid(test_net, diag_params, diag_errors, report_methods):
    net = copy.deepcopy(test_net)
    check_function = 'no_ext_grid'
    diag_params = copy.deepcopy(diag_params)
    report_methods = copy.deepcopy(report_methods)
    net.ext_grid = net.ext_grid.drop(0)
    check_result = pp.no_ext_grid(net)
    if check_result:
        diag_results = {check_function: check_result}
    else:
        diag_results = {}
    assert diag_results[check_function] == True
Esempio n. 2
0
def test_no_ext_grid(test_net):
    net = copy.deepcopy(test_net)
    net.ext_grid = net.ext_grid.drop(0)
    assert pp.no_ext_grid(net) == True