MCPcopy Index your code
hub / github.com/python/cpython / test_unary_operations

Method test_unary_operations

Lib/test/test_statistics.py:3222–3232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3220 y / X
3221
3222 def test_unary_operations(self):
3223 NormalDist = self.module.NormalDist
3224 X = NormalDist(100, 12)
3225 Y = +X
3226 self.assertIsNot(X, Y)
3227 self.assertEqual(X.mean, Y.mean)
3228 self.assertEqual(X.stdev, Y.stdev)
3229 Y = -X
3230 self.assertIsNot(X, Y)
3231 self.assertEqual(X.mean, -Y.mean)
3232 self.assertEqual(X.stdev, Y.stdev)
3233
3234 def test_equality(self):
3235 NormalDist = self.module.NormalDist

Callers

nothing calls this directly

Calls 3

NormalDistClass · 0.85
assertIsNotMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected