Ignore:
Timestamp:
05/16/06 08:48:41 (13 years ago)
Author:
vahur
Message:

random improvements. failing safely when remote servers are down or name resolving isn't working.
Also fixes some tests - since collections are realying heavily on user's home folder and collections folder that is
inside user's home folder, tests must log in. Need to write tests that test collections folder existence.
Limited LeMill search to our types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testPiece.py

    r236 r241  
    4040 
    4141    def afterSetUp(self): 
    42         pass 
     42        self.loginAsPortalOwner() 
    4343 
    4444    def testExistence(self): 
     
    5757 
    5858    def testWCAGLogo(self): 
    59         ob=self.construct('Piece', 'TestPiece4' ,self.folder) 
    60         path='/'.join((self.folder.absolute_url_path(),'TestPiece4')) 
    61         result=self.publish(path).getBody() 
    62         self.failUnless(re.search("Explanation of Level Double-A Conformance", result)) 
     59        ob = self.construct('Piece', 'TestPiece4' ,self.folder) 
     60        #path='/'.join((self.folder.absolute_url_path(),'TestPiece4')) 
     61        path = ob.absolute_url_path()+'/view' 
     62        result = self.publish(path).getBody() 
     63        self.failUnless(re.search("Explanation of Level Double-A Conformance", result), "WCAG log not found? It may be possible that user doesn't have access to view object.") 
    6364 
    6465def test_suite(): 
Note: See TracChangeset for help on using the changeset viewer.