Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
 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
Beispiel #4
0
 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