def test_mean3(self): a = [1.2, 3.2, 4.4, 1.5, 2.8, 1.1, 2.1, 4.3, 4.8, 2.2, 3.2] self.assert_(round(mean(a),1) == 2.8)
def test_mean(self): a = [2] self.assert_(mean(a) == 2)
def test_mean2(self): a = [1, 2, 3] self.assert_(mean(a) == 2)