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

Method test_init

Lib/test/test_weakset.py:192–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

190 f.discard(s)
191
192 def test_init(self):
193 s = WeakSet()
194 s.__init__(self.items)
195 self.assertEqual(s, self.s)
196 s.__init__(self.items2)
197 self.assertEqual(s, WeakSet(self.items2))
198 self.assertRaises(TypeError, s.__init__, s, 2);
199 self.assertRaises(TypeError, s.__init__, 1);
200
201 def test_constructor_identity(self):
202 s = WeakSet(self.items)

Callers

nothing calls this directly

Calls 4

__init__Method · 0.95
WeakSetClass · 0.90
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected