  def testLookupEvents(self, mock_ec2_api):
    """Test that the CloudTrail event are looked up."""
    events = mock_ec2_api.return_value.lookup_events
    events.return_value = aws_mocks.MOCK_EVENT_LIST
    lookup_events = aws_mocks.FAKE_CLOUDTRAIL.LookupEvents()

    self.assertEqual(2, len(lookup_events))
    self.assertEqual(aws_mocks.FAKE_EVENT_LIST[0], lookup_events[0])
Test that the CloudTrail event are looked up.
tests/providers/aws/internal/test_log.py