powersimdata.design.transmission.tests package

Submodules

powersimdata.design.transmission.tests.test_mwmiles module

class powersimdata.design.transmission.tests.test_mwmiles.TestCalculateMWMiles(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_calculate_mw_miles_many_scaled()[source]
test_calculate_mw_miles_many_scaled_one_branch_excluded()[source]
test_calculate_mw_miles_many_scaled_two_branches_excluded()[source]
test_calculate_mw_miles_no_scale()[source]
test_calculate_mw_miles_one_line_scaled()[source]
test_calculate_mw_miles_one_transformer_scaled()[source]

powersimdata.design.transmission.tests.test_statelines module

class powersimdata.design.transmission.tests.test_statelines.TestClassifyInterstateIntrastate(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_classify_interstate_intrastate_bad_ct()[source]
test_classify_interstate_intrastate_empty_ct()[source]
test_classify_interstate_intrastate_none()[source]
test_classify_interstate_intrastate_several()[source]
test_classify_interstate_intrastate_two()[source]

powersimdata.design.transmission.tests.test_substations module

powersimdata.design.transmission.tests.test_substations.test_calculate_substation_capacity()[source]

powersimdata.design.transmission.tests.test_upgrade module

class powersimdata.design.transmission.tests.test_upgrade.TestConstructCompositeAllowlist(methodName='runTest')[source]

Bases: TestCase

test_allow_list_and_deny_list_failure()[source]
test_bad_allow_list_entry_type()[source]
test_bad_allow_list_value()[source]
test_bad_deny_list_type()[source]
test_bad_deny_list_value()[source]
test_good_allow_list()[source]
test_good_deny_list()[source]
test_none_none()[source]
class powersimdata.design.transmission.tests.test_upgrade.TestGetBranchesByArea(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_bad_area_name()[source]
test_bad_area_type()[source]
test_bad_grid_type()[source]
test_bad_method_name()[source]
test_bad_method_type()[source]
test_bridging_multi_state()[source]
test_bridging_oregon()[source]
test_bridging_washington()[source]
test_either_multi_state()[source]
test_either_oregon()[source]
test_either_washington()[source]
test_internal_multi_state()[source]
test_internal_oregon()[source]
test_internal_washington()[source]
class powersimdata.design.transmission.tests.test_upgrade.TestIdentifyMesh(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_identify_mesh_MW_n_1()[source]
test_identify_mesh_MW_n_2()[source]
test_identify_mesh_MW_n_2_allow_list()[source]
test_identify_mesh_MW_n_2_deny_list()[source]
test_identify_mesh_MW_n_3()[source]
test_identify_mesh_MWmiles_n_1()[source]
test_identify_mesh_MWmiles_n_2()[source]
test_identify_mesh_MWmiles_n_3()[source]
test_identify_mesh_bad_method()[source]
test_identify_mesh_branch_upgrades_default()[source]
test_identify_mesh_branch_upgrades_n_2()[source]
test_identify_mesh_branch_upgrades_n_3()[source]
test_identify_mesh_branch_upgrades_n_4()[source]
test_identify_mesh_branch_upgrades_quantile90()[source]
test_identify_mesh_mean()[source]
test_identify_mesh_mean_n_1()[source]
test_identify_mesh_mean_n_2()[source]
test_identify_mesh_mean_n_3()[source]
test_identify_mesh_mean_n_4()[source]
test_identify_mesh_mean_n_4_specify_quantile()[source]
class powersimdata.design.transmission.tests.test_upgrade.TestIncrementBranch(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_increment_branch_scaling_ref_and_ct_and_increment1()[source]
test_increment_branch_scaling_ref_and_ct_and_increment2()[source]
test_increment_branch_scaling_ref_and_custom_increment()[source]
test_increment_branch_scaling_ref_and_increment()[source]
test_increment_branch_scaling_ref_only()[source]
class powersimdata.design.transmission.tests.test_upgrade.TestScaleRenewableStubs(methodName='runTest')[source]

Bases: TestCase

test_empty_ct_inplace_default()[source]
test_empty_ct_inplace_false()[source]
test_empty_ct_inplace_true()[source]
test_empty_ct_no_fuzz()[source]
test_existing_ct_unrelated_branch_id()[source]
test_existing_ct_zone_id_solar_wind()[source]
test_existing_ct_zone_id_wind()[source]
class powersimdata.design.transmission.tests.test_upgrade.TestStubTopologyHelpers(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_find_branches_connected_to_bus_1()[source]
test_find_branches_connected_to_bus_4()[source]
test_find_branches_connected_to_bus_5()[source]
test_find_capacity_at_bus_1_solar_str()[source]
test_find_capacity_at_bus_1_solar_tuple()[source]
test_find_capacity_at_bus_2_wind()[source]
test_find_capacity_at_bus_7_solar()[source]
test_find_capacity_at_bus_7_solar_ng()[source]
test_find_first_degree_branches_101()[source]
test_find_first_degree_branches_108()[source]
test_find_stub_degree_1()[source]
test_find_stub_degree_5()[source]
test_find_stub_degree_7()[source]

Module contents