def list_image_target(): return imageservice.list_image_target()
def test_list_image_target(self): imageservice.targetlist = {'volume-image1': '1:/dev/loop1', 'volume-image2': '1:/dev/loop2'} result = imageservice.list_image_target() self.assertEqual(imageservice.targetlist, result)