示例#1
0
def test_permuted_dict_of_specs(calcsuite_specs):
    actual = _permuted_dicts_of_specs(calcsuite_specs)
    expected = [
        {'time_offset': None,
         'date_range': 'default',
         'intvl_in': 'monthly',
         'region': {globe, sahel},
         'dtype_out_time': ['av', 'reg.av'],
         'dtype_in_vert': False,
         'dtype_in_time': 'ts',
         'var': condensation_rain,
         'intvl_out': 'ann',
         'dtype_out_vert': None},
        {'time_offset': None,
         'date_range': 'default',
         'intvl_in': 'monthly',
         'region': {globe, sahel},
         'dtype_out_time': ['av', 'reg.av'],
         'dtype_in_vert': False,
         'dtype_in_time': 'ts',
         'var': convection_rain,
         'intvl_out': 'ann',
         'dtype_out_vert': None}
    ]
    assert actual == expected
示例#2
0
def test_permuted_dict_of_specs(calcsuite_specs):
    actual = _permuted_dicts_of_specs(calcsuite_specs)
    expected = [{
        'time_offset': None,
        'date_range': 'default',
        'intvl_in': 'monthly',
        'region': {globe, sahel},
        'dtype_out_time': ['av', 'reg.av'],
        'dtype_in_vert': False,
        'dtype_in_time': 'ts',
        'var': condensation_rain,
        'intvl_out': 'ann',
        'dtype_out_vert': None
    }, {
        'time_offset': None,
        'date_range': 'default',
        'intvl_in': 'monthly',
        'region': {globe, sahel},
        'dtype_out_time': ['av', 'reg.av'],
        'dtype_in_vert': False,
        'dtype_in_time': 'ts',
        'var': convection_rain,
        'intvl_out': 'ann',
        'dtype_out_vert': None
    }]
    assert actual == expected
示例#3
0
 def test_permute_aux_specs(self, calc_suite, calcsuite_specs):
     expected = _permuted_dicts_of_specs(calcsuite_specs)
     actual = calc_suite._permute_aux_specs()
     assert len(actual) == len(expected)
     for act in actual:
         assert act in expected
示例#4
0
 def test_permute_aux_specs(self, calc_suite, calcsuite_specs):
     expected = _permuted_dicts_of_specs(calcsuite_specs)
     actual = calc_suite._permute_aux_specs()
     assert len(actual) == len(expected)
     for act in actual:
         assert act in expected