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

Method test_attribute_access

bpython/test/test_simpleeval.py:96–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 simple_eval("a")
95
96 def test_attribute_access(self):
97 class Foo:
98 abc = 1
99
100 self.assertEqual(simple_eval("foo.abc", {"foo": Foo()}), 1)
101
102
103class TestEvaluateCurrentExpression(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

simple_evalFunction · 0.90
FooClass · 0.70

Tested by

no test coverage detected