1
2class Foo:
3
4    def __init__(self):
5        self.a = 1
6        self.b = "bar"
7
8o = Foo()
9if not hasattr(o, "__dict__"):
10    print("SKIP")
11    raise SystemExit
12
13print(o.__dict__ == {'a': 1, 'b': 'bar'})
14