def test_context_passed(self):
        value = 42
        result = self.rpc.call(self.context,
                          'test', {"method": "context",
                                   "args": {"value": value}})
        self.assertEqual(self.context.to_dict(), result)
Makes sure a context is passed through rpc call.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_rpc_common.py/_BaseRpcTestCase.test_context_passed