Skip to content

Commit

Permalink
remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Forsythe-Cheasley committed May 2, 2014
1 parent fb3b3fd commit a220d59
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/ploneintranet/workspace/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ def setUp(self):
self.request = self.portal.REQUEST

def login(self, username):
login(self.portal, username)

def login_as_portal_owner(self):
z2.login(self.app['acl_users'], SITE_OWNER_NAME)

def login_as(self, username):
"""
helper method to login as specific user
:param username: the username of the user to add to the group
:type username: str
:rtype: None
"""
z2.login(self.portal['acl_users'], username)
login(self.portal, username)

def logout(self):
z2.logout()
def login_as_portal_owner(self):
z2.login(self.app['acl_users'], SITE_OWNER_NAME)

def add_user_to_workspace(self, username, workspace, groups=None):
"""
Expand Down

0 comments on commit a220d59

Please sign in to comment.