[Zope3-checkins] CVS: Zope3/src/zope/app/catalog/ftests - test_catalog.py:1.6.20.1

Garrett Smith garrett at mojave-corp.com
Thu Feb 26 00:11:24 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/catalog/ftests
In directory cvs.zope.org:/tmp/cvs-serv25181/src/zope/app/catalog/ftests

Modified Files:
      Tag: garrett-widgets2-branch
	test_catalog.py 
Log Message:
Yet another branch for widgets refactoring (YABFWR).


=== Zope3/src/zope/app/catalog/ftests/test_catalog.py 1.6 => 1.6.20.1 ===
--- Zope3/src/zope/app/catalog/ftests/test_catalog.py:1.6	Sun Dec 14 03:25:33 2003
+++ Zope3/src/zope/app/catalog/ftests/test_catalog.py	Thu Feb 26 00:10:54 2004
@@ -5,6 +5,7 @@
 class TestCatalogAdd(BrowserTestCase):
 
     def testAddCatalog(self):
+                
         response = self.publish("/+/action.html", basic='mgr:mgrpw', 
                                 form={'type_name':u'zope.app.catalog', 
                                       'id':u'felix_the'})
@@ -74,6 +75,8 @@
         self.assertEqual(response.getStatus(), 200)
         self.assert_(response.getBody().find('dctitle') != -1)
         self.assert_(response.getBody().find('dccreator') != -1)
+        self.assert_(response.getBody().find('fulltext') != -1)
+        self.assert_(response.getBody().find('name') != -1)
         
         # Now add some content
         response = self.publish("/+/action.html", basic='mgr:mgrpw', 
@@ -158,7 +161,7 @@
         root = self.getRootFolder()
         cat = root['felix_the']
         name = cat['dctitle']
-        self.assert_(name.documentCount()==8)
+        self.assertEquals(name.documentCount(), 8)
         res = cat.searchResults(dctitle='Second File')
         self.assert_(len(res)==1)
         res = cat.searchResults(dctitle='Third File')




More information about the Zope3-Checkins mailing list