Example #1
0
 def test_xlist_sum_float(self):
     xl = XList([1.2, 2.5, 3.1], {'first_attr': 1})
     total = xl.sum()
     self.assertAlmostEqual(total, 6.8)
Example #2
0
 def test_xlist_sum_float(self):
     xl = XList([1.2 , 2.5, 3.1], {'first_attr': 1})
     total = xl.sum()
     self.assertAlmostEqual(total, 6.8)
Example #3
0
 def test_xlist_sum_int(self):
     xl = XList([1, 2, 3], {'first_attr': 1})
     total = xl.sum()
     self.assertEqual(total, 6)
Example #4
0
 def test_xlist_sum_int(self):
     xl = XList([1 , 2, 3], {'first_attr': 1})
     total = xl.sum()
     self.assertEqual(total, 6)