  def testListImages(self, mock_ec2_api):
    """Test that AMI images are correctly listed."""
    describe_images = mock_ec2_api.return_value.describe_images
    describe_images.return_value = aws_mocks.MOCK_DESCRIBE_IMAGES
    images = aws_mocks.FAKE_AWS_ACCOUNT.ec2.ListImages()
    self.assertEqual(2, len(images))
    self.assertIn('Name', images[0])
Test that AMI images are correctly listed.
tests/providers/aws/internal/test_ec2.py