summary refs log tree commit diff stats
path: root/test/stuff/test5.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-11 13:36:48 +0100
committerhut <hut@lavabit.com>2009-12-11 13:36:48 +0100
commitf58626842bbb2bd3f8446044a44a67180b737f4e (patch)
tree74ab897879a3b151488c8348759442396ef3336b /test/stuff/test5.py
parent0c0b9489072922c0f597c7099f8728868ffbb4a4 (diff)
downloadranger-f58626842bbb2bd3f8446044a44a67180b737f4e.tar.gz
moved/fixed tests
Diffstat (limited to 'test/stuff/test5.py')
-rw-r--r--test/stuff/test5.py26
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()