(self)
| 2229 | self.assertRaises(statistics.StatisticsError, self.func, [x]) |
| 2230 | |
| 2231 | def test_compare_to_variance(self): |
| 2232 | # Test that stdev is, in fact, the square root of variance. |
| 2233 | data = [random.uniform(-2, 9) for _ in range(1000)] |
| 2234 | expected = math.sqrt(statistics.variance(data)) |
| 2235 | self.assertAlmostEqual(self.func(data), expected) |
| 2236 | |
| 2237 | def test_center_not_at_mean(self): |
| 2238 | data = (1.0, 2.0) |
nothing calls this directly
no test coverage detected