Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def test_xlist_sum_int(self):
     xl = XList([1, 2, 3], {'first_attr': 1})
     total = xl.sum()
     self.assertEqual(total, 6)
Exemplo n.º 4
0
 def test_xlist_sum_int(self):
     xl = XList([1 , 2, 3], {'first_attr': 1})
     total = xl.sum()
     self.assertEqual(total, 6)