def test_ignore_extra_headers(self, debug_mock, time_mock):
        from furious import handlers
        time_mock.return_value = 1.5
        headers = {
            'something-something': 'please-ignore-me',
            'X-Appengine-Taskretrycount': 'blue',
            'X-Appengine-Taskexecutioncount': 'yellow',
            'X-Appengine-Tasketa': '0.50'
        }

        handlers._log_task_info(headers)

        expected_logs = (
            '{"ran": 1.5, "retry_count": "blue", "gae_latency_seconds": 1.0, '
            '"task_eta": 0.5, "execution_count": "yellow"}')

        debug_mock.assert_called_with('TASK-INFO: %s', expected_logs)
Ensure _log_task_info ignores extra items in the header
dataset/ETHPy150Open Workiva/furious/furious/tests/handlers/test__init__.py/TestLogTaskInfo.test_ignore_extra_headers