Commit bc3e35a0 authored by Nicolas Wavrant's avatar Nicolas Wavrant

ERP5TypeTestCase: add whoami function

Which is useful when debugging tests
parent 446ecbd9
......@@ -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