

def test_filter_existing_image(self):
    opts = copy.deepcopy(self.opts)
    opts['search_opts_tenant'] = {
        'tenant_id': ['existing_tenant_id'],
    }
    opts['search_opts_img'] = {
        'exclude_images_list': ['existing_img_id'],
    }
    self.fake_action.run(**opts)
    self.src_image.glance_client.images.get.assert_called_once_with('existing_img_id')

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/os/actions/test_check_filter.py CheckFilterTestCase.test_filter_existing_image/original