def METHOD_NAME(self, header_name, header_value, expected_error, expected_name, expected_value):
    if expected_error is None:
        api_http_header = api_http_headers.ApiHttpHeader(header_name, header_value)
        assert api_http_header.name == expected_name and api_http_header.value == expected_value
    else:
        with pytest.raises(expected_error):
            api_http_headers.ApiHttpHeader(header_name, header_value)