'Ensure that requests to the amazonaws.com host for an API with a
domain have the correct request.url'

def test_wsgi_script_name_on_aws_url(self):

    lh = LambdaHandler('tests.test_wsgi_script_name_settings')
    event = {'body': '', 'resource': '/{proxy+}', 'requestContext': {}, 'queryStringParameters': {}, 'headers': {'Host': '1234567890.execute-api.us-east-1.amazonaws.com'}, 'pathParameters': {'proxy': 'return/request/url'}, 'httpMethod': 'GET', 'stageVariables': {}, 'path': '/return/request/url'}
    response = lh.handler(event, None)
    self.assertEqual(response['statusCode'], 200)
    self.assertEqual(response['body'], 'https://1234567890.execute-api.us-east-1.amazonaws.com/dev/return/request/url')
