Django - Testing Django Applications
Identify the error in this test code snippet:
from unittest.mock import patch
@patch('external.api.get_data')
def test_api():
response = get_data()
assert response == 'mocked'
