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

Method setUp

tests/utils/s3transfer/__init__.py:314–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312
313class StubbedClientTest(unittest.TestCase):
314 def setUp(self):
315 self.session = botocore.session.get_session()
316 self.region = 'us-west-2'
317 self.client = self.session.create_client(
318 's3',
319 self.region,
320 aws_access_key_id='foo',
321 aws_secret_access_key='bar',
322 )
323 self.stubber = Stubber(self.client)
324 self.stubber.activate()
325
326 def tearDown(self):
327 self.stubber.deactivate()

Callers

nothing calls this directly

Calls 3

StubberClass · 0.90
activateMethod · 0.80
create_clientMethod · 0.45

Tested by

no test coverage detected