

def test_bdm_destroy_at_top(self):
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.bdm_destroy_at_top(self.fake_context, uuids.instance, device_name='fake-device', volume_id='fake-vol')
    expected_args = {
        'instance_uuid': uuids.instance,
        'device_name': 'fake-device',
        'volume_id': 'fake-vol',
    }
    self._check_result(call_info, 'bdm_destroy_at_top', expected_args, version='1.10')

dataset/ETHPy150Open openstack/nova/nova/tests/unit/cells/test_cells_rpcapi.py CellsAPITestCase.test_bdm_destroy_at_top/original