Verify that a warning is raised when calling deprecated_function
Preconditions (2)
Step 1: Import deprecated_function from the module
Step 2: Call deprecated_function inside a pytest.warns context manager for DeprecationWarning
Step 3: Capture the warning message
Step 4: Assert that the warning message contains the expected text 'deprecated'
✅ Expected Result: The test passes if a DeprecationWarning is raised and the warning message contains 'deprecated'