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