r13286 - Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests

"Patrick Gerken" <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: do3cc
Date: Wed Nov 24 23:43:31 2010
New Revision: 13286

Modified:
   Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testATVocabularyManager.py
   Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testSimpleVocabulary.py
   Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/test_searchTreeVocabulary.py
Log:
Fixed tests

Modified: Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testATVocabularyManager.py
==============================================================================
--- Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testATVocabularyManager.py	(original)
+++ Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testATVocabularyManager.py	Wed Nov 24 23:43:31 2010
@@ -2,6 +2,7 @@
 # Test for TreeVocabulary
 #
 import unittest
+import time
 
 from Testing import ZopeTestCase
 from Products.PloneTestCase import PloneTestCase
@@ -47,6 +48,7 @@
         self.qi.installProduct(PROJECTNAME)
         self.failUnless(self.qi.isProductInstalled(PROJECTNAME))        
                 
+        time.sleep(1)
         #reinstallProducts
         self.qi.reinstallProducts([PROJECTNAME,])
         self.failUnless(self.qi.isProductInstalled(PROJECTNAME))
@@ -77,6 +79,7 @@
                 
         
         #install the product again
+        time.sleep(1)
         self.qi.installProduct(PROJECTNAME)
         self.failUnless(self.qi.isProductInstalled(PROJECTNAME))
                 
@@ -111,7 +114,7 @@
         atvm.invokeFactory('SimpleVocabulary','foo')
         vocab = atvm.getVocabularyByName('foo')
         vocab.invokeFactory('SimpleVocabularyTerm', 'bar', title='Some test')
-        
+        time.sleep(1) 
         #reinstall the product
         self.qi.reinstallProducts([PROJECTNAME,])
 

Modified: Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testSimpleVocabulary.py
==============================================================================
--- Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testSimpleVocabulary.py	(original)
+++ Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/testSimpleVocabulary.py	Wed Nov 24 23:43:31 2010
@@ -230,9 +230,9 @@
     suite = TestSuite()
     suite.addTest(makeSuite(TestSimpleVocabulary))
     
-    suite.addTest(ZopeDocFileSuite('simplevocabulary.txt',
+    suite.addTest(ZopeDocFileSuite('../../doc/simplevocabulary.txt',
                                    optionflags=optionflags,
-                                   package='Products.ATVocabularyManager.doc',
+                                   package='Products.ATVocabularyManager',
                                    test_class=TestSimpleVocabulary,
                                    ))
     

Modified: Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/test_searchTreeVocabulary.py
==============================================================================
--- Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/test_searchTreeVocabulary.py	(original)
+++ Products.ATVocabularyManager/branches/plone-3.2/Products/ATVocabularyManager/tests/test_searchTreeVocabulary.py	Wed Nov 24 23:43:31 2010
@@ -16,8 +16,6 @@
 
 
 
-from Products.ATVocabularyManager import doc
-
 class TestSearchTreeVocabulary(PloneTestCase.PloneTestCase):
     """
     """
@@ -45,9 +43,9 @@
 
 
     for test in scriptTests:
-        suites.append(  ZopeDocFileSuite(test,
+        suites.append(  ZopeDocFileSuite('../../doc/' + test,
                                          optionflags=optionflags,
-                                         package='Products.ATVocabularyManager.doc',
+                                         package='Products.ATVocabularyManager',
                                          test_class=TestSearchTreeVocabulary,
                                          ))
     return TestSuite( suites )

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.