@@ -0,0 +1,1361 @@
+# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22). You%0A# may not use this file except in compliance with the License. A copy of%0A# the License is located at%0A#%0A# http://aws.amazon.com/apache2.0/%0A#%0A# or in the %22license%22 file accompanying this file. This file is%0A# distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF%0A# ANY KIND, either express or implied. See the License for the specific%0A# language governing permissions and limitations under the License.%0Afrom tests import unittest%0A%0Aimport botocore.session%0Afrom botocore.exceptions import ClientError%0A%0Aclass TestSTS(unittest.TestCase):%0A    def setUp(self):%0A        self.session = botocore.session.get_session()%0A%0A    def test_regionalized_endpoints(self):%0A        # Since we have to activate STS regionalization, we will test%0A        # that you can send an STS request to a regionalized endpoint%0A        # by making a call with the explicitly wrong region name%0A        sts = self.session.create_client(%0A            'sts', region_name='ap-southeast-1',%0A            endpoint_url='https://sts.us-west-2.amazonaws.com')%0A        # Signing error will be thrown with the incorrect region name included.%0A        with self.assertRaisesRegexp(ClientError, 'ap-southeast-1') as e:%0A            sts.get_session_token()%0A

Add integration test for sts regionalization