changeset 13:eb81d6943f2e

add another dummy object
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 27 May 2011 07:22:40 -0700
parents d50d5237e82d
children 30979d82c95d
files tests/objects.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/objects.py	Fri May 27 07:19:17 2011 -0700
+++ b/tests/objects.py	Fri May 27 07:22:40 2011 -0700
@@ -4,3 +4,9 @@
 
 def stringsort(*strings):
     return ''.join(sorted(''.join(strings)))
+
+class Foo(object):
+    def __init__(self, a, b):
+        self.factor = a*100 + b
+    def __call__(self, number):
+        return number * self.factor