Пример #1
0
def test_simple_login():
    state = InventoryStateMachine()
    v1 = state.new_user(user={
        "id": 'tparker',
        "name": "tyler parker",
        "password": "******"
    })
    state.login_as(v1)
    state.whoami()
    state.teardown()
Пример #2
0
def test_whoami():
    state = InventoryStateMachine()
    state.whoami()
    state.teardown()