##// END OF EJS Templates
added history tests
Narahari -
Show More
@@ -198,7 +198,7 b' class DisplayData(MimeBundle):'
198 198 class ExecuteResult(MimeBundle):
199 199 execution_count = Integer()
200 200
201 class HistoryReply(MimeBundle):
201 class HistoryReply(Reference):
202 202 history = List(Unicode)
203 203
204 204
@@ -405,18 +405,31 b' def test_single_payload():'
405 405
406 406 def test_is_complete():
407 407 flush_channels()
408 a
409 408 msg_id = KC.is_complete("a = 1")
410 409 reply = KC.get_shell_msg(timeout=TIMEOUT)
411 410 validate_message(reply, 'is_complete_reply', msg_id)
412 411
413 def test_history():
412 def test_history_range():
414 413 flush_channels()
415 414
416 415 msg_id = KC.history("range", True, True)
417 416 reply = KC.get_shell_msg(timeout=TIMEOUT)
418 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 433 # IOPub channel
421 434
422 435
General Comments 0
You need to be logged in to leave comments. Login now