from projects.golem_gui.pages import common
from projects.golem_gui.pages.users import create_user


def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    create_user.navigate_to_page()


def test(data):
    project = 'project'
    permission = 'admin'
    create_user.add_project_permission(project, permission)
    create_user.assert_project_permission_in_table(project, permission)
    permission2 = 'standard'
    create_user.add_project_permission(project, permission2)
    create_user.assert_project_permission_in_table(project, permission2)
    assert not create_user.project_permission_in_table(project, permission)

32dd664934e6d958ec8b685ce3f74758e0f1b492
<mask token>

<mask token>


def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    create_user.navigate_to_page()


<mask token>

<mask token>


def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    create_user.navigate_to_page()


def test(data):
    project = 'project'
    permission = 'admin'
    create_user.add_project_permission(project, permission)
    create_user.assert_project_permission_in_table(project, permission)
    permission2 = 'standard'
    create_user.add_project_permission(project, permission2)
    create_user.assert_project_permission_in_table(project, permission2)
    assert not create_user.project_permission_in_table(project, permission)

from projects.golem_gui.pages import common
from projects.golem_gui.pages.users import create_user


def setup(data):
    common.access_golem(data.env.url, data.env.admin)
    create_user.navigate_to_page()


def test(data):
    project = 'project'
    permission = 'admin'
    create_user.add_project_permission(project, permission)
    create_user.assert_project_permission_in_table(project, permission)
    permission2 = 'standard'
    create_user.add_project_permission(project, permission2)
    create_user.assert_project_permission_in_table(project, permission2)
    assert not create_user.project_permission_in_table(project, permission)
