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

Function test_vars

tests/test_signatures.py:139–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138
139def test_vars():
140 pec = """
141class Test():
142 def __init__(self, a):
143 self.a = a
144 def set_a(self, value):
145 self.a = value
146x = Test(123)
147 """
148 code = "vars(x)"
149 s = setup_state(code, code, pec=pec)
150 s.check_function("vars").check_args("object").has_equal_ast()
151
152
153def test_center():

Callers

nothing calls this directly

Calls 1

setup_stateFunction · 0.90

Tested by

no test coverage detected