MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_slots

Method test_slots

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

Source from the content-addressed store, hash-verified

2893 # implementing our own implementations from scratch.
2894
2895 def test_slots(self):
2896 nd = self.module.NormalDist(300, 23)
2897 with self.assertRaises(TypeError):
2898 vars(nd)
2899 self.assertEqual(tuple(nd.__slots__), ('_mu', '_sigma'))
2900
2901 def test_instantiation_and_attributes(self):
2902 nd = self.module.NormalDist(500, 17)

Callers

nothing calls this directly

Calls 3

varsFunction · 0.85
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected