Skip to content

Commit

Permalink
Merge pull request #49 from kylebarron/master
Browse files Browse the repository at this point in the history
Fix custom test example in README
  • Loading branch information
blink1073 authored Nov 24, 2021
2 parents a152137 + 484bac6 commit 71a350b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ Example
# in the method name, to avoid clashing with any tests that
# jupyter_kernel_test adds in the future.
def test_mykernel_stderr(self):
self.flush_channels()
reply, output_msgs = self.execute_helper(code='print_err "oops"')
self.assertEqual(output_msgs[0].header['msg_type'], 'stream')
self.assertEqual(output_msgs[0].content['name'], 'stderr')
self.assertEqual(output_msgs[0].content['text'], 'oops\n')
self.assertEqual(output_msgs[0]['header']['msg_type'], 'stream')
self.assertEqual(output_msgs[0]['content']['name'], 'stderr')
self.assertEqual(output_msgs[0]['content']['text'], 'oops\n')
if __name__ == '__main__':
unittest.main()
Expand Down

0 comments on commit 71a350b

Please sign in to comment.