def test_simple_average_has_count(self): count = 10 average = simple_average() for element in range(0,count): average.calculate(element) self.assertEquals(average.count, count)
def test_simple_average_has_count(self): count = 10 average = simple_average() for element in range(0, count): average.calculate(element) self.assertEquals(average.count, count)
def test_simple_average(self): average = simple_average() rv = 0 for element in self.elements: rv = average.calculate(element) self.assertEquals(rv, 4.714285714285714)