Пример #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)
Пример #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)
Пример #3
0
 def test_simple(self):
     fname = tests.get_data_path(('FF', 'structured', 'small'))
     cube, = load(fname)
     self.assertCML(cube)
Пример #4
0
 def test_simple(self):
     fname = tests.get_data_path(('FF', 'structured', 'small'))
     cube, = load(fname)
     self.assertCML(cube)
Пример #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)
Пример #6
0
 def test_simple(self):
     [cube] = load(self.fname)
     self.assertCML(cube)