def METHOD_NAME(self, test_client):
    request_data = {**TEST_FW_PAYLOAD, 'release_date': 'invalid date'}
    result = test_client.put('/rest/firmware', json=request_data).json
    assert result['status'] == 1
    assert 'Invalid date literal' in result['error_message']