##// END OF EJS Templates
Added test for TerminalMagics
mr.Shu -
Show More
@@ -179,6 +179,11 b' class InteractiveShellTestCase(unittest.TestCase):'
179 s = ''' sum([1, 2,
179 s = ''' sum([1, 2,
180 3, 4])'''
180 3, 4])'''
181
181
182 tm = ip.magics_manager.registry['TerminalMagics']
182 with tt.AssertPrints("If you want to paste code into IPython, try the "
183 with tt.AssertPrints("If you want to paste code into IPython, try the "
183 "%paste and %cpaste magic functions."):
184 "%paste and %cpaste magic functions."):
184 ip.run_cell(s)
185 ip.run_cell(s)
186
187 with tt.AssertNotPrints("If you want to paste code into IPython, try the "
188 "%paste and %cpaste magic functions."):
189 tm.store_or_execute(s, name=None)
General Comments 0
You need to be logged in to leave comments. Login now