Exemplo n.º 1
0
 def test_ma(self):
     data = COUNT.aggregate(self.cube.data, axis=0, function=self.func)
     self.assertArrayEqual(data, [2])
Exemplo n.º 2
0
 def test_ma(self):
     data = COUNT.aggregate(self.cube.data, axis=0, function=self.func)
     self.assertArrayEqual(data, [2])
Exemplo n.º 3
0
 def test_not_callable(self):
     with self.assertRaisesRegex(TypeError, 'function must be a callable'):
         COUNT.aggregate(self.cube.data, axis=0, function='wibble')
Exemplo n.º 4
0
 def test_not_callable(self):
     with self.assertRaisesRegexp(TypeError, 'function must be a callable'):
         COUNT.aggregate(self.cube.data, axis=0, function='wibble')