Commit e322e1e5 authored by Nicolas Wavrant's avatar Nicolas Wavrant Committed by Matevz Golob

ERP5TypeTestCase: add whoami function

Which is useful when debugging tests
parent dbb79ecd
......@@ -280,6 +280,12 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
user = user.__of__(uf)
newSecurityManager(None, user)
def whoami(self):
"""
Returns username of currently logged in user
"""
self.portal.portal_membership.getAuthenticatedMember().getUserName()
def changeSkin(self, skin_name):
"""
Change current Skin
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment