Complete the code to check if the website loads within the acceptable time limit.
assert response_time [1] 2, "Page load is too slow"
The assertion checks that the response time is less than or equal to 2 seconds, ensuring good performance.
Complete the code to verify the system handles 1000 users simultaneously.
assert system.load_test([1]) == 'pass'
The test checks if the system can handle exactly 1000 users, which is the expected load.
Fix the error in the assertion that checks if the error message appears when the server is down.
assert error_message [1] 'Server is down'
The assertion should check if the error message equals the expected string.
Fill both blanks to create a dictionary comprehension that maps each feature to its test status if the feature is critical.
{feature: status for feature, status in features.items() if feature [1] 'critical' and status [2] 'passed'}The comprehension filters features that are critical and have passed tests.
Fill all three blanks to create a dictionary that maps uppercase feature names to their status if the status is 'failed'.
{ [1]: [2] for feature, status in features.items() if status [3] 'failed' }The dictionary comprehension uses uppercase feature names and includes only those with status 'failed'.