Verify exception type and message when dividing by zero
Preconditions (2)
Step 1: Write a function that divides two numbers
Step 2: Call the function with divisor as zero inside a test
Step 3: Catch the exception using pytest.raises
Step 4: Check that the exception type is ZeroDivisionError
Step 5: Check that the exception message contains 'division by zero'
✅ Expected Result: Test passes confirming the exception type and message are as expected