Beispiel #1
0
 def test_list_downloaded_images(self):
     with unittest.mock.patch('avocado.core.data_dir.settings.settings', self.stg):
         with unittest.mock.patch('avocado.utils.vmimage.ImageProviderBase.get_version'):
             images = sorted(vmimage_plugin.list_downloaded_images(), key=lambda i: i['name'])
             for index, image in enumerate(images):
                 for key in image:
                     self.assertEqual(self.expected_images[index][key], image[key],
                                      "Found image is different from the expected one")
Beispiel #2
0
 def __get_cache_files():
     return set(i['file'] for i in vmimage_plug.list_downloaded_images())