Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 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))
Esempio n. 4
0
 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))