[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_adapter.py:1.8
Stephan Richter
srichter@cbu.edu
Sun, 30 Mar 2003 08:30:02 -0500
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv1055/src/zope/app/services/tests
Modified Files:
test_adapter.py
Log Message:
Fixed two tests that did not expect the right behavior and I fix therefore
the failing test Sidnei created. I made these changes after SteveA
responded for my request of clarification.
=== Zope3/src/zope/app/services/tests/test_adapter.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/services/tests/test_adapter.py:1.7 Sun Mar 23 17:35:42 2003
+++ Zope3/src/zope/app/services/tests/test_adapter.py Sun Mar 30 08:30:01 2003
@@ -179,7 +179,8 @@
self.assertEqual(adapter.__class__, A)
self.assertEqual(adapter.context, o)
- self.assertEqual(service.getAdapter(o, I1, u"Yatta!"), o)
+ self.assertRaises(ComponentLookupError, service.getAdapter,
+ o, I1, u"Yatta!")
for r in I1, I1E:
for p in I2B, I2:
@@ -190,7 +191,7 @@
self.assertEqual(adapter.__class__, A)
self.assertEqual(adapter.context, o)
- self.assertEqual(service.queryAdapter(o, I1, None, u"Yatta!"), o)
+ self.assertEqual(service.queryAdapter(o, I1, None, u"Yatta!"), None)
self.assertRaises(ComponentLookupError, service.getAdapter,
O(), I3, "Yatta!")