コード例 #1
0
 def test(self):
     shape = ()
     kwargs = dict()
     self.assertTupleEqual(PROPORTION.aggregate_shape(**kwargs), shape)
     kwargs = dict(captain='caveman', penelope='pitstop')
     self.assertTupleEqual(PROPORTION.aggregate_shape(**kwargs), shape)
コード例 #2
0
 def test(self):
     self.assertEqual(PROPORTION.name(), 'proportion')
コード例 #3
0
 def test(self):
     self.assertIsNotNone(PROPORTION.units_func)
     new_units = PROPORTION.units_func(None)
     self.assertEqual(new_units, 1)
コード例 #4
0
ファイル: test_PROPORTION.py プロジェクト: cpelley/iris
 def test(self):
     shape = ()
     kwargs = dict()
     self.assertTupleEqual(PROPORTION.aggregate_shape(**kwargs), shape)
     kwargs = dict(captain='caveman', penelope='pitstop')
     self.assertTupleEqual(PROPORTION.aggregate_shape(**kwargs), shape)
コード例 #5
0
ファイル: test_PROPORTION.py プロジェクト: cpelley/iris
 def test(self):
     self.assertEqual(PROPORTION.name(), 'proportion')
コード例 #6
0
ファイル: test_PROPORTION.py プロジェクト: cpelley/iris
 def test(self):
     self.assertIsNotNone(PROPORTION.units_func)
     new_units = PROPORTION.units_func(None)
     self.assertEqual(new_units, 1)