tests/contexts.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/contexts.py Tue Aug 30 18:59:33 2016 +0200 1.3 @@ -0,0 +1,33 @@ 1.4 +class C: 1.5 + l = [2] 1.6 + s = "test" 1.7 + def __init__(self, x): 1.8 + self.x = x 1.9 + self.y = 3 1.10 + self.z = "z" 1.11 + 1.12 +c = C([1]) 1.13 +x = c.x 1.14 +f = c.x.__len__ 1.15 +result1 = f() 1.16 + 1.17 +y = c.l 1.18 +g = c.l.__len__ 1.19 +result2 = g() 1.20 + 1.21 +yy = C.l 1.22 +gg = C.l.__len__ 1.23 +result22 = gg() 1.24 + 1.25 +z = c.s 1.26 +h = c.s.__len__ 1.27 +result3 = h() 1.28 + 1.29 +zz = C.s 1.30 +hh = C.s.__len__ 1.31 +result33 = hh() 1.32 + 1.33 +a = c.y 1.34 +b = c.z 1.35 +i = c.z.__len__ 1.36 +result4 = i()