def test_check_lengths(self): ds = create_test_data(0) combined_tile_ids = {(0, 0): ds, (0, 1): ds, (0, 2): ds, (1, 0): ds, (1, 1): ds} with raises_regex(ValueError, 'sub-lists do not have ' 'consistent lengths'): _check_shape_tile_ids(combined_tile_ids)
def test_check_lengths(self): ds = create_test_data(0) combined_tile_ids = {(0, 0): ds, (0, 1): ds, (0, 2): ds, (1, 0): ds, (1, 1): ds} with pytest.raises( ValueError, match=r"sub-lists do not have consistent lengths" ): _check_shape_tile_ids(combined_tile_ids)
def test_check_depths(self): ds = create_test_data(0) combined_tile_ids = {(0, ): ds, (0, 1): ds} with raises_regex(ValueError, "sub-lists do not have " "consistent depths"): _check_shape_tile_ids(combined_tile_ids)