示例#1
0
def test_menuwidget_crud():
    w = MenuWidget(
        generate_random_string(),
        description=generate_random_string(),
        active=True,
        shortcuts={
            "Services / Catalogs": generate_random_string(),
            "Clouds / Providers": generate_random_string(),
        },
        visibility=["<By Role>", sel.ByText("EvmRole-administrator")]
    )
    w.create()
    with update(w):
        w.active = False
    w.delete()
示例#2
0
def test_menuwidget_crud():
    w = MenuWidget(
        fauxfactory.gen_alphanumeric(),
        description=fauxfactory.gen_alphanumeric(),
        active=True,
        shortcuts={
            "Services / Catalogs": fauxfactory.gen_alphanumeric(),
            "Clouds / Providers": fauxfactory.gen_alphanumeric(),
        },
        visibility=["<By Role>", sel.ByText("EvmRole-administrator")]
    )
    w.create()
    with update(w):
        w.active = False
    w.delete()