

def setUp(self):
    super(CheckFilterTestCase, self).setUp()
    fake_utils = mock.Mock()
    utils_patch = mockpatch.Patch('cloudferry.lib.os.actions.check_filter.utils', new=fake_utils)
    self.useFixture(utils_patch)
    self.src_image = mock.Mock()
    self.src_compute = mock.Mock()
    self.src_storage = mock.Mock()
    self.src_identity = mock.Mock()
    fake_src_cloud = mock.Mock()
    fake_src_cloud.resources = {
        fake_utils.IMAGE_RESOURCE: self.src_image,
        fake_utils.COMPUTE_RESOURCE: self.src_compute,
        fake_utils.STORAGE_RESOURCE: self.src_storage,
        fake_utils.IDENTITY_RESOURCE: self.src_identity,
    }
    fake_config = mock.Mock()
    fake_config.migrate.migrate_whole_cloud = False
    fake_config.migrate.filter_path = '/fake/filter_path.yaml'
    fake_init = {
        'src_cloud': fake_src_cloud,
        'cfg': fake_config,
    }
    self.fake_action = check_filter.CheckFilter(fake_init, cloud='src_cloud')
    self.opts = dict(search_opts_tenant={
        
    }, search_opts={
        
    }, search_opts_vol={
        
    }, search_opts_img={
        
    })

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