

def test_bdm_update_or_create_at_top(self):
    fake_bdm = {
        'id': 2,
        'other': 'meow',
    }
    call_info = self._stub_rpc_method('cast', None)
    self.cells_rpcapi.bdm_update_or_create_at_top(self.fake_context, fake_bdm, create='fake-create')
    expected_args = {
        'bdm': fake_bdm,
        'create': 'fake-create',
    }
    self._check_result(call_info, 'bdm_update_or_create_at_top', expected_args, version='1.28')

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