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

Method setUp

tests/unit/customizations/logs/test_tail.py:213–228  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

211
212class BaseLogEventsGeneratorTest(unittest.TestCase):
213 def setUp(self):
214 self.session = Session()
215 self.client = self.session.create_client(
216 'logs', region_name='us-west-2'
217 )
218 self.stubber = Stubber(self.client)
219 self.group_name = 'groupName'
220 self.start = '1970-01-01T00:00:01.000000'
221 self.expected_start_as_milli_epoch = 1000
222 self.filter_pattern = 'mypattern'
223 self.log_stream_names = ['foo-stream', 'bar-stream']
224 self.log_stream_name_prefix = 'foo'
225 self.log_timestamp = 1000
226 self.expected_log_timestamp_as_datetime = datetime(
227 1970, 1, 1, 0, 0, 1, tzinfo=tz.tzutc()
228 )
229
230 def get_event(self, event_id, event_message, timestamp=None):
231 if timestamp is None:

Callers

nothing calls this directly

Calls 3

SessionClass · 0.90
StubberClass · 0.90
create_clientMethod · 0.45

Tested by

no test coverage detected