

def test_target_cell_specified_not_me(self):
    info = {
        
    }

    def _fake_build_instances(ctxt, cell, sched_kwargs):
        info['ctxt'] = ctxt
        info['cell'] = cell
        info['sched_kwargs'] = sched_kwargs
    self.stubs.Set(self.msg_runner, 'build_instances', _fake_build_instances)
    cells = [1, 2, 3]
    target_cell = 'fake!cell!path'
    current_cell = 'not!the!same'
    filter_props = {
        'scheduler_hints': {
            'target_cell': target_cell,
        },
        'routing_path': current_cell,
        'scheduler': self.scheduler,
        'context': self.context,
        'host_sched_kwargs': 'meow',
    }
    self.assertIsNone(self._filter_cells(self, filter_props))
    expected_info = {
        'ctxt': self.context,
        'cell': 'fake!cell!path',
        'sched_kwargs': 'meow',
    }
    self.assertEqual(expected_info, info)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/cells/test_cells_filters.py TestTargetCellFilter.test_target_cell_specified_not_me/VarMisuse@135/220 `cells`->`self`