Debian Codegraph @

pypy/module/__builtin__/test/test_vars.py

raw symbols SCIP
1 class AppTestVars:
2
3 def test_vars_no_arguments(self):
4 assert vars() == locals()
5
6 def test_vars_too_many_arguments(self):
7 raises(TypeError, vars, 0, 1)
8
9 def test_vars_correct_arguments(self):
10 class a(object):
11 def __init__(self):
12 self.res = 42
13 assert vars(a) == a.__dict__
14 a1 = a()
15 assert vars(a1) == a1.__dict__
16 assert vars(a1).get('res') ==42