

def test_get_keypair_at_top(self):
    call_info = self._stub_rpc_method('call', 'fake_response')
    result = self.cells_rpcapi.get_keypair_at_top(self.fake_context, 'fake_user_id', 'fake_name')
    expected_args = {
        'user_id': 'fake_user_id',
        'name': 'fake_name',
    }
    self._check_result(call_info, 'get_keypair_at_top', expected_args, version='1.37')
    self.assertEqual(result, 'fake_response')

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