##// END OF EJS Templates
Merge pull request #1669 from minrk/pyout...
Min RK -
r6665:feff9285 merge
parent child Browse files
Show More
@@ -35,6 +35,11 b' def setup():'
35 35 KM.start_kernel(stdout=PIPE, stderr=PIPE)
36 36 KM.start_channels()
37 37
38 # wait for kernel to be ready
39 KM.shell_channel.execute("pass")
40 KM.shell_channel.get_msg(block=True, timeout=5)
41 flush_channels()
42
38 43
39 44 def teardown():
40 45 KM.stop_channels()
@@ -207,12 +212,22 b' class DisplayData(Reference):'
207 212 nt.assert_true(isinstance(v, basestring), "expected string data, got %r" % v)
208 213
209 214
215 class PyOut(Reference):
216 execution_count = Integer()
217 data = Dict()
218 def _data_changed(self, name, old, new):
219 for k,v in new.iteritems():
220 nt.assert_true(mime_pat.match(k))
221 nt.assert_true(isinstance(v, basestring), "expected string data, got %r" % v)
222
223
210 224 references = {
211 225 'execute_reply' : ExecuteReply(),
212 226 'object_info_reply' : OInfoReply(),
213 227 'status' : Status(),
214 228 'complete_reply' : CompleteReply(),
215 229 'pyin' : PyIn(),
230 'pyout' : PyOut(),
216 231 'pyerr' : PyErr(),
217 232 'stream' : Stream(),
218 233 'display_data' : DisplayData(),
General Comments 0
You need to be logged in to leave comments. Login now