MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / test_object_access_parser

Function test_object_access_parser

tests/test_test_object_accessed.py:77–80  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

75 ["x.a[1]", "x.a", "print(x.a)", "print(kw = x.a)", "(x.a, y.a)", "[x.a, y.a]"],
76)
77def test_object_access_parser(code):
78 p = ObjectAccessParser()
79 p.visit(ast.parse(code))
80 assert "x.a" in p.out

Callers

nothing calls this directly

Calls 2

ObjectAccessParserClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected