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

Method setUp

tests/utils/botocore/__init__.py:137–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135
136class BaseEnvVar(unittest.TestCase):
137 def setUp(self):
138 # Automatically patches out os.environ for you
139 # and gives you a self.environ attribute that simulates
140 # the environment. Also will automatically restore state
141 # for you in tearDown()
142 self.environ = {}
143 self.environ_patch = mock.patch('os.environ', self.environ)
144 self.environ_patch.start()
145
146 def tearDown(self):
147 self.environ_patch.stop()

Callers 1

setUpMethod · 0.45

Calls 1

startMethod · 0.45

Tested by

no test coverage detected