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()
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()
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()