##// END OF EJS Templates
Backport PR #6556: Use some more informative asserts in inprocess kernel tests...
Thomas Kluyver -
Show More
@@ -46,7 +46,7 b' class InProcessKernelTestCase(unittest.TestCase):'
46 kc = self.kc
46 kc = self.kc
47 kc.execute('%pylab')
47 kc.execute('%pylab')
48 msg = get_stream_message(kc)
48 msg = get_stream_message(kc)
49 self.assert_('matplotlib' in msg['content']['data'])
49 self.assertIn('matplotlib', msg['content']['data'])
50
50
51 def test_raw_input(self):
51 def test_raw_input(self):
52 """ Does the in-process kernel handle raw_input correctly?
52 """ Does the in-process kernel handle raw_input correctly?
@@ -41,7 +41,7 b' class InProcessKernelManagerTestCase(unittest.TestCase):'
41
41
42 old_kernel = km.kernel
42 old_kernel = km.kernel
43 km.restart_kernel()
43 km.restart_kernel()
44 self.assert_(km.kernel is not None)
44 self.assertIsNotNone(km.kernel)
45 self.assertNotEquals(km.kernel, old_kernel)
45 self.assertNotEquals(km.kernel, old_kernel)
46
46
47 km.shutdown_kernel()
47 km.shutdown_kernel()
General Comments 0
You need to be logged in to leave comments. Login now