def testSumListFloats(self): '''Test method that sums a list of float values.''' lu = ListUser() lst = [3.3, 4.4, 5.5] result = lu.sumList(lst) self.assertEqual(result, sum(lst))
def testSumListIntegers(self): '''Test method that sums a list of integer values.''' lu = ListUser() lst = [3, 5, 7] result = lu.sumList(lst) self.assertEqual(result, sum(lst))