Show More
@@ -81,7 +81,6 b' class InProcessKernelManagerTestCase(unittest.TestCase):' | |||||
81 | self.assertEqual(msg['header']['msg_type'], 'inspect_reply') |
|
81 | self.assertEqual(msg['header']['msg_type'], 'inspect_reply') | |
82 | content = msg['content'] |
|
82 | content = msg['content'] | |
83 | assert content['found'] |
|
83 | assert content['found'] | |
84 | self.assertEqual(content['name'], 'foo') |
|
|||
85 | text = content['data']['text/plain'] |
|
84 | text = content['data']['text/plain'] | |
86 | self.assertIn('int', text) |
|
85 | self.assertIn('int', text) | |
87 |
|
86 |
@@ -121,7 +121,6 b' class ExecuteReplyError(Reference):' | |||||
121 |
|
121 | |||
122 |
|
122 | |||
123 | class InspectReply(MimeBundle): |
|
123 | class InspectReply(MimeBundle): | |
124 | name = Unicode() |
|
|||
125 | found = Bool() |
|
124 | found = Bool() | |
126 |
|
125 | |||
127 |
|
126 | |||
@@ -315,7 +314,6 b' def test_oinfo_found():' | |||||
315 | validate_message(reply, 'inspect_reply', msg_id) |
|
314 | validate_message(reply, 'inspect_reply', msg_id) | |
316 | content = reply['content'] |
|
315 | content = reply['content'] | |
317 | assert content['found'] |
|
316 | assert content['found'] | |
318 | nt.assert_equal(content['name'], 'a') |
|
|||
319 | text = content['data']['text/plain'] |
|
317 | text = content['data']['text/plain'] | |
320 | nt.assert_in('Type:', text) |
|
318 | nt.assert_in('Type:', text) | |
321 | nt.assert_in('Docstring:', text) |
|
319 | nt.assert_in('Docstring:', text) | |
@@ -331,7 +329,6 b' def test_oinfo_detail():' | |||||
331 | validate_message(reply, 'inspect_reply', msg_id) |
|
329 | validate_message(reply, 'inspect_reply', msg_id) | |
332 | content = reply['content'] |
|
330 | content = reply['content'] | |
333 | assert content['found'] |
|
331 | assert content['found'] | |
334 | nt.assert_equal(content['name'], 'ip.object_inspect') |
|
|||
335 | text = content['data']['text/plain'] |
|
332 | text = content['data']['text/plain'] | |
336 | nt.assert_in('Definition:', text) |
|
333 | nt.assert_in('Definition:', text) | |
337 | nt.assert_in('Source:', text) |
|
334 | nt.assert_in('Source:', text) | |
@@ -388,7 +385,6 b' def test_stream():' | |||||
388 | stdout = KC.iopub_channel.get_msg(timeout=TIMEOUT) |
|
385 | stdout = KC.iopub_channel.get_msg(timeout=TIMEOUT) | |
389 | validate_message(stdout, 'stream', msg_id) |
|
386 | validate_message(stdout, 'stream', msg_id) | |
390 | content = stdout['content'] |
|
387 | content = stdout['content'] | |
391 | nt.assert_equal(content['name'], u'stdout') |
|
|||
392 | nt.assert_equal(content['data'], u'hi\n') |
|
388 | nt.assert_equal(content['data'], u'hi\n') | |
393 |
|
389 | |||
394 |
|
390 |
@@ -514,7 +514,6 b' class Kernel(Configurable):' | |||||
514 | reply_content = {'status' : 'ok'} |
|
514 | reply_content = {'status' : 'ok'} | |
515 | reply_content['data'] = data = {} |
|
515 | reply_content['data'] = data = {} | |
516 | reply_content['metadata'] = {} |
|
516 | reply_content['metadata'] = {} | |
517 | reply_content['name'] = name |
|
|||
518 | reply_content['found'] = info['found'] |
|
517 | reply_content['found'] = info['found'] | |
519 | if info['found']: |
|
518 | if info['found']: | |
520 | info_text = self.shell.object_inspect_text( |
|
519 | info_text = self.shell.object_inspect_text( |
General Comments 0
You need to be logged in to leave comments.
Login now