MCPcopy Index your code
hub / github.com/bpython/bpython / test_name_lookup_indexing

Method test_name_lookup_indexing

bpython/test/test_simpleeval.py:39–41  ·  view source on GitHub ↗

Names can be looked up in a namespace

(self)

Source from the content-addressed store, hash-verified

37 self.assertEqual(simple_eval("map"), map)
38
39 def test_name_lookup_indexing(self):
40 """Names can be looked up in a namespace"""
41 self.assertEqual(simple_eval("a[b]", {"a": {"c": 1}, "b": "c"}), 1)
42
43 def test_lookup_on_suspicious_types(self):
44 class FakeDict:

Callers

nothing calls this directly

Calls 1

simple_evalFunction · 0.90

Tested by

no test coverage detected