Show More
@@ -198,7 +198,7 b' class DisplayData(MimeBundle):' | |||||
198 | class ExecuteResult(MimeBundle): |
|
198 | class ExecuteResult(MimeBundle): | |
199 | execution_count = Integer() |
|
199 | execution_count = Integer() | |
200 |
|
200 | |||
201 |
class HistoryReply( |
|
201 | class HistoryReply(Reference): | |
202 | history = List(Unicode) |
|
202 | history = List(Unicode) | |
203 |
|
203 | |||
204 |
|
204 | |||
@@ -405,18 +405,31 b' def test_single_payload():' | |||||
405 |
|
405 | |||
406 | def test_is_complete(): |
|
406 | def test_is_complete(): | |
407 | flush_channels() |
|
407 | flush_channels() | |
408 | a |
|
|||
409 | msg_id = KC.is_complete("a = 1") |
|
408 | msg_id = KC.is_complete("a = 1") | |
410 | reply = KC.get_shell_msg(timeout=TIMEOUT) |
|
409 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |
411 | validate_message(reply, 'is_complete_reply', msg_id) |
|
410 | validate_message(reply, 'is_complete_reply', msg_id) | |
412 |
|
411 | |||
413 | def test_history(): |
|
412 | def test_history_range(): | |
414 | flush_channels() |
|
413 | flush_channels() | |
415 |
|
414 | |||
416 | msg_id = KC.history("range", True, True) |
|
415 | msg_id = KC.history("range", True, True) | |
417 | reply = KC.get_shell_msg(timeout=TIMEOUT) |
|
416 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |
418 | validate_message(reply, 'history_reply', msg_id) |
|
417 | validate_message(reply, 'history_reply', msg_id) | |
419 |
|
418 | |||
|
419 | def test_history_tail(): | |||
|
420 | flush_channels() | |||
|
421 | ||||
|
422 | msg_id = KC.history("tail", True, True, n = 1) | |||
|
423 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |||
|
424 | validate_message(reply, 'history_reply', msg_id) | |||
|
425 | ||||
|
426 | def test_history_search(): | |||
|
427 | flush_channels() | |||
|
428 | ||||
|
429 | msg_id = KC.history("search", True, True, n = 1, pattern = "*") | |||
|
430 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |||
|
431 | validate_message(reply, 'history_reply', msg_id) | |||
|
432 | ||||
420 | # IOPub channel |
|
433 | # IOPub channel | |
421 |
|
434 | |||
422 |
|
435 |
General Comments 0
You need to be logged in to leave comments.
Login now