  def tearDown(self) -> None:
    """Remove the created resources."""
    for file in self.expected_filenames:
      try:
        self.aws_account.s3.RmObject(
            self.bucket, self.directory + file)
      except Exception as error:  # pylint: disable=broad-exception-caught
        logger.exception(
            'Error cleaning up %s: {%s}', file, str(error), exc_info=True)
Remove the created resources.
tests/providers/aws/e2e.py