Ejemplo n.º 1
0
def test_account_creation_with_kitchen_manager_role_successful():
    # 4.9.1.1 Account Type
    manager = AccountManager()
  
    assert manager.admin_create_account('KitchenManager', '*****@*****.**', 'KitchenManager') == True, 'Expected kitchen staff manager to be created'
Ejemplo n.º 2
0
def test_account_creation_with_customer_role_unsuccessful():
    # 4.9.1.1 Account Type
    manager = AccountManager()
  
    assert manager.admin_create_account('KitchenManager', '*****@*****.**', 'Customer') == False, 'Expected customer to not be created'
Ejemplo n.º 3
0
def test_kitchen_staff_account_creation_successful():
    # 4.9.1 Management Account Creation
    manager = AccountManager()
  
    assert manager.admin_create_account('KitchenStaff', '*****@*****.**', 'KitchenStaff') == False, 'Expected kitchen staff account to not be created'