##// END OF EJS Templates
inspect_reply messages have 'oname', not 'name'...
MinRK -
Show More
@@ -160,7 +160,7 b' class V5toV4(Adapter):'
160
160
161 def object_info_reply(self, msg):
161 def object_info_reply(self, msg):
162 """inspect_reply can't be easily backward compatible"""
162 """inspect_reply can't be easily backward compatible"""
163 msg['content'] = {'found' : False, 'name' : 'unknown'}
163 msg['content'] = {'found' : False, 'oname' : 'unknown'}
164 return msg
164 return msg
165
165
166 # iopub channel
166 # iopub channel
@@ -274,7 +274,7 b' class V4toV5(Adapter):'
274 content = msg['content']
274 content = msg['content']
275 new_content = msg['content'] = {'status' : 'ok'}
275 new_content = msg['content'] = {'status' : 'ok'}
276 found = new_content['found'] = content['found']
276 found = new_content['found'] = content['found']
277 new_content['name'] = content['name']
277 new_content['name'] = content['oname']
278 new_content['data'] = data = {}
278 new_content['data'] = data = {}
279 new_content['metadata'] = {}
279 new_content['metadata'] = {}
280 if found:
280 if found:
@@ -155,7 +155,7 b' class V4toV5TestCase(AdapterTest):'
155
155
156 def test_object_info_reply(self):
156 def test_object_info_reply(self):
157 msg = self.msg("object_info_reply", {
157 msg = self.msg("object_info_reply", {
158 'name' : 'foo',
158 'oname' : 'foo',
159 'found' : True,
159 'found' : True,
160 'status' : 'ok',
160 'status' : 'ok',
161 'definition' : 'foo(a=5)',
161 'definition' : 'foo(a=5)',
@@ -302,7 +302,7 b' class V5toV4TestCase(AdapterTest):'
302 self.assertEqual(v4['header']['msg_type'], 'object_info_reply')
302 self.assertEqual(v4['header']['msg_type'], 'object_info_reply')
303 v4c = v4['content']
303 v4c = v4['content']
304 v5c = v5['content']
304 v5c = v5['content']
305 self.assertEqual(sorted(v4c), ['found', 'name'])
305 self.assertEqual(sorted(v4c), ['found', 'oname'])
306 self.assertEqual(v4c['found'], False)
306 self.assertEqual(v4c['found'], False)
307
307
308 # iopub channel
308 # iopub channel
General Comments 0
You need to be logged in to leave comments. Login now