MCPcopy Create free account
hub / github.com/bpython/bpython / test_name_lookup

Method test_name_lookup

bpython/test/test_simpleeval.py:34–37  ·  view source on GitHub ↗

Names can be looked up in a namespace

(self)

Source from the content-addressed store, hash-verified

32 self.assertEqual(simple_eval("[1,2][0]"), 1)
33
34 def test_name_lookup(self):
35 """Names can be looked up in a namespace"""
36 self.assertEqual(simple_eval("a", {"a": 1}), 1)
37 self.assertEqual(simple_eval("map"), map)
38
39 def test_name_lookup_indexing(self):
40 """Names can be looked up in a namespace"""

Callers

nothing calls this directly

Calls 1

simple_evalFunction · 0.90

Tested by

no test coverage detected