diff options
author | hut <hut@lavabit.com> | 2009-12-11 13:36:48 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-11 13:36:48 +0100 |
commit | f58626842bbb2bd3f8446044a44a67180b737f4e (patch) | |
tree | 74ab897879a3b151488c8348759442396ef3336b /test/stuff/test5.py | |
parent | 0c0b9489072922c0f597c7099f8728868ffbb4a4 (diff) | |
download | ranger-f58626842bbb2bd3f8446044a44a67180b737f4e.tar.gz |
moved/fixed tests
Diffstat (limited to 'test/stuff/test5.py')
-rw-r--r-- | test/stuff/test5.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/stuff/test5.py b/test/stuff/test5.py new file mode 100644 index 00000000..682a716f --- /dev/null +++ b/test/stuff/test5.py @@ -0,0 +1,26 @@ +class A: + def foo(self, x): + y = x + 1 + print(y) + return y + + @staticmethod + def zar(): + print("l o l") + +class B(A): + def bar(self, x): + y = self.foo(x) + 3 + print(y) + return y + +class C(): + def foo(self, x): + y = x - 1 + print(y) + return y + +a = C() +A.foo(a, 5) + +B.zar() |