def ImagesList(self): images = Images() args = self.Args() args.all = True images.set_args(args) i = images.images() return json.dumps(i)
def ImagesList(self): images = Images() args = self.Args() args.all=True images.set_args(args) i = images.display_all_image_info() return json.dumps(i)
def ImagesList(self): images = Images() args = self.Args() args.all = True images.set_args(args) i = images.display_all_image_info() return json.dumps(i)
def ImagesList(self): images = Images() args = self.Args() args.all=True images.set_args(args) i = images.images() return json.dumps(i)
def test_images(self): db = DockerBackend() db._inspect_image = MagicMock(return_value=_docker_images) ob = OSTreeBackend() ob.syscontainers.get_system_images = MagicMock(return_value=_system_images) images = Images() args = self.Args() args.storage = 'docker' args.json = True images.set_args(args) return_value = images.display_all_image_info() self.assertEqual(return_value, 0)
def test_images(self): db = DockerBackend() db._inspect_image = MagicMock(return_value=_docker_images) ob = OSTreeBackend() ob.syscontainers.get_system_images = MagicMock( return_value=_system_images) images = Images() args = self.Args() args.storage = 'docker' args.json = True images.set_args(args) return_value = images.display_all_image_info() self.assertEqual(return_value, 0)
def Images(self): args = self.Args() images = Images() images.set_args(args) return json.dumps(images.images())