1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/attr_providers.py Tue Aug 30 18:59:33 2016 +0200
1.3 @@ -0,0 +1,25 @@
1.4 +class C:
1.5 + def __init__(self):
1.6 + self.a = 1
1.7 +
1.8 + b = 2
1.9 +
1.10 +class D:
1.11 + def __init__(self):
1.12 + self.a = 3
1.13 + self.b = 4
1.14 +
1.15 +class E:
1.16 + a = 5
1.17 + b = 6
1.18 +
1.19 +def f(x):
1.20 + return x.a, x.b
1.21 +
1.22 +c = C()
1.23 +d = D()
1.24 +e = E()
1.25 +
1.26 +result1 = f(c) # (1, 2)
1.27 +result2 = f(d) # (3, 4)
1.28 +result3 = f(e) # (5, 6)