示例#1
0
def test_login_delete_missing_bin():
    state = InventoryStateMachine()
    v1 = state.new_user(user={'id': '0', 'name': '', 'password': '******'})
    state.login_as(user_id=v1)
    state.logout()
    state.delete_missing_bin(bin_id='BIN000000')
    state.teardown()
示例#2
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()
示例#3
0
def test_delete_user():
    state = InventoryStateMachine()
    v1 = state.new_user(user={'id': '0', 'name': '', 'password': '******'})
    state.login_as(user_id=v1)
    state.delete_existing_user(user_id=v1)
    state.teardown()