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

Method test_name

Lib/test/test_symtable.py:361–365  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

359 self.assertTrue(self.top.lookup("sys").is_imported())
360
361 def test_name(self):
362 self.assertEqual(self.top.get_name(), "top")
363 self.assertEqual(self.spam.get_name(), "spam")
364 self.assertEqual(self.spam.lookup("x").get_name(), "x")
365 self.assertEqual(self.Mine.get_name(), "Mine")
366
367 def test_class_get_methods(self):
368 deprecation_mess = (

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
get_nameMethod · 0.45
lookupMethod · 0.45

Tested by

no test coverage detected