Example #1
0
 def test_percentage_integers2(self):
     result = c.percentage(140, 200)
     self.assertEqual(result, 280)    
Example #2
0
 def test_percentage_integers(self):
     result = c.percentage(100, 20)
     self.assertEqual(result, 20)
Example #3
0
 def test_percentage_zero_integers2(self):
     result = c.percentage(110, 0)
     self.assertEqual(result, 0)
Example #4
0
 def test_percentage_integers4(self):
     result = c.percentage(200, 0.5)
     self.assertEqual(result, 1)
Example #5
0
 def test_percentage_integers3(self):
     result = c.percentage(250, 50)
     self.assertEqual(result, 125)  
Example #6
0
 def percentage(self, m, n):
     return c.percentage(m, n)