Show More
@@ -179,3 +179,13 b' class PasteTestCase(TestCase):' | |||
|
179 | 179 | nt.assert_equal(ip.user_ns['b'], 200) |
|
180 | 180 | nt.assert_equal(out, code+"\n## -- End pasted text --\n") |
|
181 | 181 | |
|
182 | def test_paste_leading_commas(self): | |
|
183 | "Test multiline strings with leading commas" | |
|
184 | tm = ip.magics_manager.registry['TerminalMagics'] | |
|
185 | s = '''\ | |
|
186 | a = """ | |
|
187 | ,1,2,3 | |
|
188 | """''' | |
|
189 | ip.user_ns.pop('foo', None) | |
|
190 | tm.store_or_execute(s, 'foo') | |
|
191 | nt.assert_in('foo', ip.user_ns) |
General Comments 0
You need to be logged in to leave comments.
Login now