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