Ejemplo n.º 1
0
    def test_simple_callback(self):
        def callback(cube, field, filename):
            cube.attributes['processing'] = 'fast-ff'

        fname = tests.get_data_path(('FF', 'structured', 'small'))
        cube, = load(fname, callback=callback)
        self.assertCML(cube)
Ejemplo n.º 2
0
 def test_simple_callback(self):
     def callback(cube, field, filename):
         cube.attributes['processing'] = 'fast-ff'
     fname = tests.get_data_path(('FF', 'structured', 'small'))
     cube, = load(fname, callback=callback)
     self.assertCML(cube)
Ejemplo n.º 3
0
 def test_simple(self):
     fname = tests.get_data_path(('FF', 'structured', 'small'))
     cube, = load(fname)
     self.assertCML(cube)
Ejemplo n.º 4
0
 def test_simple(self):
     fname = tests.get_data_path(('FF', 'structured', 'small'))
     cube, = load(fname)
     self.assertCML(cube)
Ejemplo n.º 5
0
 def test_simple_callback(self):
     def callback(cube, field, filename):
         cube.attributes['processing'] = 'fast-pp'
     [cube] = load(self.fname, callback=callback)
     self.assertCML(cube)
Ejemplo n.º 6
0
 def test_simple(self):
     [cube] = load(self.fname)
     self.assertCML(cube)