Verify function output by capturing printed output
Preconditions (2)
Step 1: Create a function that prints a message to the console
Step 2: Write a pytest test function that calls this function
Step 3: Use pytest's capsys fixture to capture the printed output
Step 4: Assert that the captured output matches the expected message
✅ Expected Result: The test passes if the captured output exactly matches the expected printed message