def check_output_value(mb, message, test_input, expected_output):
    for k, v in test_input.iteritems():
        message.extra_headers[k] = v
    output = mb._map_smtp_headers_to_api_parameters(message)
    for extra_header in expected_output:
        assert extra_header in output
dataset/ETHPy150Open BradWhittington/django-mailgun/test_django_mailgun.py/check_output_value/original