Changeset 2482


Ignore:
Timestamp:
11/16/07 12:26:03 (7 years ago)
Author:
ewr119@…
Message:

There's no need to log out before logging in again. Also, you'd need () after self.logout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • weblion/FacultyStaffDirectory/trunk/tests/testFacultyStaffDirectoryTool.py

    r2480 r2482  
    9696        # logged in as an fsd user, the substring <directory_id/user_id> should be in the  return value for the function 
    9797        self.failUnless(self.fsd_tool.fsdMyFolder().find(self.directory.id + '/' + self.person.id), "bad url returned for %s: %s" % (self.person.id, self.fsd_tool.fsdMyFolder())) 
    98         self.logout() 
    9998         
    10099        self.login('user1') 
     
    115114        # logged in as an fsd user, the substring <directory_id/user_id/edit> should be in the return value for the function 
    116115        self.failUnless(self.fsd_tool.fsdMemberProfile().find(self.directory.id + '/' + self.person.id), "bad url returned for %s: %s" % (self.person.id, self.fsd_tool.fsdMemberProfile())) 
    117         self.logout() 
     116         
    118117        # now as an acl_users user 
    119118        self.login('user1') 
     
    130129        # logged in as an fsd user, the method should always return true 
    131130        self.failUnless(self.fsd_tool.fsdShowMyFolder(), "fsdShowMyFolder returning false for fsd user") 
    132         self.logout 
     131         
    133132        # now as acl_users user 
    134133        self.login('user1') 
Note: See TracChangeset for help on using the changeset viewer.