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

Method test_symbol_lookup

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

Source from the content-addressed store, hash-verified

299 self.assertFalse(self.spam.lookup("x").is_parameter())
300
301 def test_symbol_lookup(self):
302 self.assertEqual(len(self.top.get_identifiers()),
303 len(self.top.get_symbols()))
304
305 self.assertRaises(KeyError, self.top.lookup, "not_here")
306
307 def test_namespaces(self):
308 self.assertTrue(self.top.lookup("Mine").is_namespace())

Callers

nothing calls this directly

Calls 4

get_symbolsMethod · 0.80
assertEqualMethod · 0.45
get_identifiersMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected