def test_MathOperations_Addition(self):
     self.assertEqual(3, Addition.sum(1, 2))
 def Sum(self, a, b):
     self.Result = Addition.sum(a, b)
     return self.Result
 def SumList(self, a):
     self.Result = Addition.sumList(a)
     return self.Result
Example #4
0
 def test_MathOperations_sum_list(self):
     valuelist = [1, 2, 3]
     self.assertEqual(6, Addition.sum(valuelist))