def test_mean_known_value(self): """mean should return known value from known input list.""" for nums, value in self.known_means: result = averages.mean(nums) self.assertEqual(value, result)
import averages print(averages.mean(1, 5, 1)) print(averages.median(1, 5, 1)) print(averages.rms(1, 5, 1)) print(averages.middle_average(1, 5, 1))