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

Method test_id

Lib/test/test_unittest/test_case.py:584–589  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

582 # will be a string (either 8-byte or unicode -- again, because the docs
583 # just say "string")
584 def test_id(self):
585 class Foo(unittest.TestCase):
586 def runTest(self):
587 pass
588
589 self.assertIsInstance(Foo().id(), str)
590
591
592 # "If result is omitted or None, a temporary result object is created,

Callers

nothing calls this directly

Calls 3

assertIsInstanceMethod · 0.80
FooClass · 0.70
idMethod · 0.45

Tested by

no test coverage detected