Beispiel #1
0
def check_grid_models_match_failure():
    grid1 = Grid("Western")
    grid2 = Grid("Texas")
    grid2.grid_model == "foo"
    with pytest.raises(ValueError):
        _check_grid_models_match(grid1, grid2)
Beispiel #2
0
def test_check_grid(interconnect):
    grid = Grid(interconnect)
    check_grid(grid)
Beispiel #3
0
def check_grid_models_match_success():
    _check_grid_models_match(Grid("Western"), Grid("Texas"))
Beispiel #4
0
def test_error_handling():
    grid = Grid("Western")
    del grid.dcline
    with pytest.raises(ValueError):
        check_grid(grid)