コード例 #1
0
ファイル: test_combine.py プロジェクト: dlnash/xarray
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: test_combine.py プロジェクト: yutiansut/xarray
 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)