

def test_validate_console_port(self):
    call_info = self._stub_rpc_method('call', 'fake_response')
    result = self.cells_rpcapi.validate_console_port(self.fake_context, uuids.instance, 'fake-port', 'fake-type')
    expected_args = {
        'instance_uuid': uuids.instance,
        'console_port': 'fake-port',
        'console_type': 'fake-type',
    }
    self._check_result(call_info, 'validate_console_port', expected_args, version='1.6')
    self.assertEqual('fake_response', result)

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