[Zope-Checkins] CVS: Zope3/lib/python/Interface/tests - unitfixtures.py:1.1.4.2

Jim Fulton jim@zope.com
Tue, 20 Nov 2001 14:27:40 -0500


Update of /cvs-repository/Zope3/lib/python/Interface/tests
In directory cvs.zope.org:/tmp/cvs-serv22027

Modified Files:
      Tag: Zope-3x-branch
	unitfixtures.py 
Log Message:
Fixed sample interfaces by removing 'self' in function signatures.

Interface functions should *not* include 'self', because callers do
not pass it!



=== Zope3/lib/python/Interface/tests/unitfixtures.py 1.1.4.1 => 1.1.4.2 ===
 
 class I1(Interface.Base):
-    def ma(self):
+    def ma():
         "blah"
 
 class I2(I1): pass
@@ -46,16 +46,16 @@
 
     foobar = Interface.Attribute("fuzzed over beyond all recognition")
 
-    def aMethod(self, foo, bar, bingo):
+    def aMethod(foo, bar, bingo):
         """ This is aMethod """
 
-    def anotherMethod(self, foo=6, bar="where you get sloshed", bingo=(1,3,)):
+    def anotherMethod(foo=6, bar="where you get sloshed", bingo=(1,3,)):
         """ This is anotherMethod """
 
-    def wammy(self, zip, *argues):
+    def wammy(zip, *argues):
         """ yadda yadda """
 
-    def useless(self, **keywords):
+    def useless(**keywords):
         """ useless code is fun! """
 
 class Foo: