[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/utility/tests - test_useconfiguration.py:1.2

Guido van Rossum guido@python.org
Thu, 1 May 2003 12:41:09 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/services/utility/tests
In directory cvs.zope.org:/tmp/cvs-serv6490

Modified Files:
	test_useconfiguration.py 
Log Message:
Make this test pass again.


=== Zope3/src/zope/app/browser/services/utility/tests/test_useconfiguration.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/services/utility/tests/test_useconfiguration.py:1.1	Thu Apr  3 17:05:33 2003
+++ Zope3/src/zope/app/browser/services/utility/tests/test_useconfiguration.py	Thu May  1 12:41:08 2003
@@ -52,10 +52,16 @@
         else:
             return None
 
+    def info(self):
+        return [{'configuration': self}]
+
     # configuration
     def getComponent(self):
         return self
 
+    def usageSummary(self):
+        return ""
+
 class StubAbsoluteURL(BrowserView):
     def __str__(self):
         return self.context.url
@@ -90,22 +96,27 @@
         expected = [{"interface": ifname2,
                      "name": "",
                      "url": "",
+                     "summary": "",
                      "configurl": confurl(ifname2, '')},
                     {"interface": ifname2,
                      "name": "mybar-1",
                      "url": "3",
+                     "summary": "",
                      "configurl": confurl(ifname2, 'mybar-1')},
                     {"interface": ifname1,
                      "name": "",
                      "url": "1",
+                     "summary": "",
                      "configurl": confurl(ifname1, '')},
                     {"interface": ifname1,
                      "name": "myfoo-1",
                      "url": "2",
+                     "summary": "",
                      "configurl": confurl(ifname1, 'myfoo-1')},
                     {"interface": ifname1,
                      "name": "myfoo-2",
                      "url": "",
+                     "summary": "",
                      "configurl": confurl(ifname1, 'myfoo-2')},
                     ]
         result = utilities.getConfigs()