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

Method test_symbol_lookup

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

Source from the content-addressed store, hash-verified

307 self.assertFalse(self.spam.lookup("x").is_parameter())
308
309 def test_symbol_lookup(self):
310 self.assertEqual(len(self.top.get_identifiers()),
311 len(self.top.get_symbols()))
312
313 self.assertRaises(KeyError, self.top.lookup, "not_here")
314
315 @unittest.expectedFailure # TODO: RUSTPYTHON
316 def test_namespaces(self):

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
get_symbolsMethod · 0.80
assertEqualMethod · 0.45
get_identifiersMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected