##// END OF EJS Templates
added test for GH-306
Paul Ivanov -
Show More
@@ -42,7 +42,7 b' class InteractiveShellTestCase(unittest.TestCase):'
42 ip = get_ipython()
42 ip = get_ipython()
43 ip.run_cell('')
43 ip.run_cell('')
44
44
45 def test_run_cell_multilne(self):
45 def test_run_cell_multiline(self):
46 """Multi-block, multi-line cells must execute correctly.
46 """Multi-block, multi-line cells must execute correctly.
47 """
47 """
48 ip = get_ipython()
48 ip = get_ipython()
@@ -55,3 +55,10 b' class InteractiveShellTestCase(unittest.TestCase):'
55 self.assertEquals(ip.user_ns['x'], 2)
55 self.assertEquals(ip.user_ns['x'], 2)
56 self.assertEquals(ip.user_ns['y'], 3)
56 self.assertEquals(ip.user_ns['y'], 3)
57
57
58 def test_multiline_string_cells(self):
59 """Code sprinkled with multiline strings should execute (GH-306)"""
60 ip = get_ipython()
61 ip.run_cell('tmp=0')
62 self.assertEquals(ip.user_ns['tmp'], 0)
63 ip.run_cell('tmp=1;"""a\nb"""\n')
64 self.assertEquals(ip.user_ns['tmp'], 1)
General Comments 0
You need to be logged in to leave comments. Login now