Show More
@@ -198,6 +198,9 b' class DisplayData(MimeBundle):' | |||
|
198 | 198 | class ExecuteResult(MimeBundle): |
|
199 | 199 | execution_count = Integer() |
|
200 | 200 | |
|
201 | class HistoryReply(MimeBundle): | |
|
202 | history = List(Unicode) | |
|
203 | ||
|
201 | 204 | |
|
202 | 205 | references = { |
|
203 | 206 | 'execute_reply' : ExecuteReply(), |
@@ -208,6 +211,7 b' references = {' | |||
|
208 | 211 | 'is_complete_reply': IsCompleteReply(), |
|
209 | 212 | 'execute_input' : ExecuteInput(), |
|
210 | 213 | 'execute_result' : ExecuteResult(), |
|
214 | 'history_reply' : HistoryReply(), | |
|
211 | 215 | 'error' : Error(), |
|
212 | 216 | 'stream' : Stream(), |
|
213 | 217 | 'display_data' : DisplayData(), |
@@ -401,11 +405,18 b' def test_single_payload():' | |||
|
401 | 405 | |
|
402 | 406 | def test_is_complete(): |
|
403 | 407 | flush_channels() |
|
404 | ||
|
408 | a | |
|
405 | 409 | msg_id = KC.is_complete("a = 1") |
|
406 | 410 | reply = KC.get_shell_msg(timeout=TIMEOUT) |
|
407 | 411 | validate_message(reply, 'is_complete_reply', msg_id) |
|
408 | 412 | |
|
413 | def test_history(): | |
|
414 | flush_channels() | |
|
415 | ||
|
416 | msg_id = KC.history("range", True, True) | |
|
417 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |
|
418 | validate_message(reply, 'history_reply', msg_id) | |
|
419 | ||
|
409 | 420 | # IOPub channel |
|
410 | 421 | |
|
411 | 422 |
General Comments 0
You need to be logged in to leave comments.
Login now