Verify that the custom exception is raised with correct message
Preconditions (2)
Step 1: Call risky_function with a negative number as input
Step 2: Catch the exception raised
Step 3: Verify that the exception is of type CustomError
Step 4: Verify that the exception message is 'Negative value not allowed'
✅ Expected Result: The function raises CustomError with message 'Negative value not allowed' when called with negative input