def test_ensures_cloudtrail_arns_are_valid_when_missing_resource(self):
        try:
            assert_cloudtrail_arn_is_valid(
                'arn:aws:cloudtrail:us-east-1:%s:foo' % TEST_ACCOUNT_ID)
            self.fail('Should have failed')
        except __HOLE__ as e:
            self.assertIn('Invalid trail ARN provided', str(e))
dataset/ETHPy150Open aws/aws-cli/tests/unit/customizations/cloudtrail/test_validation.py/TestValidation.test_ensures_cloudtrail_arns_are_valid_when_missing_resource