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