def METHOD_NAME(self):
    # The authenticated user should not change as a result of publish
    self.assertEqual(getSecurityManager().getUser().getId(), user_name)
    self.folder.acl_users.userFolderAddUser('barney', 'secret', [], [])
    self.publish(self.folder_path, basic='barney:secret')
    self.assertEqual(getSecurityManager().getUser().getId(), user_name)