[Zope3-checkins] CVS: Zope3/src/zope/app/tests - test_context.py:1.5.12.1

Sidnei da Silva sidnei at x3ng.com.br
Wed Aug 13 10:37:13 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/tests
In directory cvs.zope.org:/tmp/cvs-serv28777/src/zope/app/tests

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	test_context.py 
Log Message:
__name__-geddon. Use getName for getting the name of interfaces

=== Zope3/src/zope/app/tests/test_context.py 1.5 => 1.5.12.1 ===
--- Zope3/src/zope/app/tests/test_context.py:1.5	Tue Jul  1 19:28:42 2003
+++ Zope3/src/zope/app/tests/test_context.py	Wed Aug 13 09:36:39 2003
@@ -48,13 +48,13 @@
     >>> x = X()
     >>> directlyProvides(x, I4)
 
-    >>> [interface.__name__ for interface in list(providedBy(x))]
+    >>> [interface.getName() for interface in list(providedBy(x))]
     ['I4', 'I3']
 
-    >>> [interface.__name__ for interface in list(providedBy(D1(x)))]
+    >>> [interface.getName() for interface in list(providedBy(D1(x)))]
     ['I4', 'I3', 'I1']
 
-    >>> [interface.__name__ for interface in list(providedBy(D2(D1(x))))]
+    >>> [interface.getName() for interface in list(providedBy(D2(D1(x))))]
     ['I4', 'I3', 'I1', 'I2']
     """
 




More information about the Zope3-Checkins mailing list