Complete the code to check if the feature meets the acceptance criteria by verifying the output status.
def test_feature_output(): output = feature_function() assert output.status == [1]
The acceptance criteria specify that the output status must be "success" to pass the test.
Complete the code to verify the acceptance criteria that the returned list contains exactly 3 items.
def test_list_length(): result = get_items() assert len(result) == [1]
The acceptance criteria require exactly 3 items in the returned list.
Fix the error in the assertion to correctly verify the acceptance criteria that the user role must be 'admin'.
def test_user_role(): user = get_current_user() assert user.role == [1]
The acceptance criteria specify the user role must be exactly 'admin' to pass.
Fill both blanks to verify acceptance criteria: the response code must be 200 and the response message must be 'OK'.
def test_response(): response = get_response() assert response.code == [1] assert response.message == [2]
The acceptance criteria require the response code to be 200 and the message to be 'OK'.
Fill all three blanks to verify acceptance criteria: the data dictionary must have key 'id' with value 123, and key 'status' with value 'active'.
def test_data_dict(): data = get_data() assert data[[1]] == [2] assert data[[3]] == "active"
The acceptance criteria require the data dictionary to have 'id' key with value 123 and 'status' key with value 'active'.