
    >>> portal = layer['portal']

Add a Task

    >>> portal.invokeFactory('Task', 't1')
    't1'
    >>> t1 = portal.get('t1')
    >>> t1
    <Task at ...>

No we test, if the Responsibility have autmaticly owner rights

first, we create the user hugoboss, because he would be the responsible of the task
    >>> portal.acl_users._doAddUser('hugoboss', 'secret', ['Contributer'], [])
    <PloneUser 'hugoboss'>
    >>> portal.manage_setLocalRoles('hugoboss', ('Contributor', 'Editor'))

then we create a task, and set 'hugoboss' as responsible
    >>> portal.invokeFactory('Task', 't2')
    't2'
    >>> t2 = portal.get('t2')
    >>> t2.setResponsibility(['hugoboss'])

and now we check if the user 'hugoboss' has the owner role
    >>> local_roles = dict(t2.get_local_roles())
    >>> local_roles.get('hugoboss')
    ('Owner',)
