def test_invalid_range_fill(self): ptype = 'range<quantity>' encoding = 'int32' fill_value = '-9999' ptype = get_parameter_type(ptype,encoding) self.assertRaises(TypeError, get_fill_value,fill_value, encoding, ptype)
def test_invalid_range_fill(self): ptype = 'range<quantity>' encoding = 'int32' fill_value = '-9999' ptype = get_parameter_type(ptype, encoding) self.assertRaises(TypeError, get_fill_value, fill_value, encoding, ptype)
def get_context(self, ptype, encoding, fill_value, codeset=None): ptype = get_parameter_type(ptype, encoding, codeset) context = ParameterContext(name='test', param_type=ptype) context.fill_value = get_fill_value(fill_value, encoding, ptype) return context