Ejemplo n.º 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)
Ejemplo n.º 2
0
 def test(self):
     self.assertEqual(PROPORTION.name(), 'proportion')
Ejemplo n.º 3
0
 def test(self):
     self.assertIsNotNone(PROPORTION.units_func)
     new_units = PROPORTION.units_func(None)
     self.assertEqual(new_units, 1)
Ejemplo n.º 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)
Ejemplo n.º 5
0
 def test(self):
     self.assertEqual(PROPORTION.name(), 'proportion')
Ejemplo n.º 6
0
 def test(self):
     self.assertIsNotNone(PROPORTION.units_func)
     new_units = PROPORTION.units_func(None)
     self.assertEqual(new_units, 1)