

def _check_result(self, call_info, method, args, version=None):
    self.assertEqual(self.fake_topic, self.cells_rpcapi.client.target.topic)
    self.assertEqual(self.fake_context, call_info['context'])
    self.assertEqual(method, call_info['method'])
    self.assertEqual(args, call_info['args'])
    if (version is not None):
        self.assertIn('version', call_info)
        call_info.assertIsInstance(call_info['version'], six.string_types, msg=('Message version %s is not a string' % call_info['version']))
        self.assertEqual(version, call_info['version'])
    else:
        self.assertNotIn('version', call_info)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/cells/test_cells_rpcapi.py CellsAPITestCase._check_result/VarMisuse@96/126 `self`->`call_info`