[Zope3-checkins] CVS: Zope3/src/zope/interface/tests - test_adapter.py:1.7

Jim Fulton jim at zope.com
Tue Apr 20 07:38:07 EDT 2004


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

Modified Files:
	test_adapter.py 
Log Message:
Now allow None to be specified for any of the required interfaces.


=== Zope3/src/zope/interface/tests/test_adapter.py 1.6 => 1.7 ===
--- Zope3/src/zope/interface/tests/test_adapter.py:1.6	Thu Apr 15 09:26:25 2004
+++ Zope3/src/zope/interface/tests/test_adapter.py	Tue Apr 20 07:38:06 2004
@@ -39,6 +39,11 @@
     """
     >>> registry = AdapterRegistry()
     
+    >>> registry.register([None, None], IB1, 'bob', 'A0')
+
+    >>> registry.lookup((IF1, IR1), IB0, 'bob')
+    'A0'
+    
     >>> registry.register([None, IR0], IB1, 'bob', 'A1')
 
     >>> registry.lookup((IF1, IR1), IB0, 'bob')




More information about the Zope3-Checkins mailing list