示例#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
 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
 def test(self):
     self.assertEqual(PROPORTION.name(), 'proportion')
示例#6
0
 def test(self):
     self.assertIsNotNone(PROPORTION.units_func)
     new_units = PROPORTION.units_func(None)
     self.assertEqual(new_units, 1)