MCPcopy Create free account
hub / github.com/aws/aws-cli / assert_status_code

Method assert_status_code

tests/integration/botocore/test_s3.py:162–165  ·  view source on GitHub ↗
(self, response, status_code)

Source from the content-addressed store, hash-verified

160 self.client = self.session.create_client('s3', region_name=self.region)
161
162 def assert_status_code(self, response, status_code):
163 self.assertEqual(
164 response['ResponseMetadata']['HTTPStatusCode'], status_code
165 )
166
167 def create_bucket(self, region_name, bucket_name=None, client=None):
168 bucket_client = client or self.client

Calls

no outgoing calls

Tested by

no test coverage detected