2007-01-20 | paulb | raw files shortlog changelog graph | Added multiple instance test. | |
tests/class.py (file) |
1.1 --- a/tests/class.py Sun Jan 14 03:00:20 2007 +0100 1.2 +++ b/tests/class.py Sat Jan 20 22:51:51 2007 +0100 1.3 @@ -3,7 +3,10 @@ 1.4 x = 123 1.5 def m(self, x): 1.6 self.x = x 1.7 -a = A() 1.8 +a1 = A() 1.9 +a2 = A() 1.10 y = A.x 1.11 -a.m(321) 1.12 -z = a.x 1.13 +a1.m(321) 1.14 +a2.m("321") 1.15 +z1 = a1.x 1.16 +z2 = a2.x