##// END OF EJS Templates
check that multiline string literals don't expand as magic...
Paul Ivanov -
Show More
@@ -6,6 +6,7 b''
6 import nose.tools as nt
6 import nose.tools as nt
7
7
8 from IPython.testing import tools as tt, decorators as dec
8 from IPython.testing import tools as tt, decorators as dec
9 from IPython.testing.globalipapp import get_ipython
9
10
10 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
11 # Tests
12 # Tests
@@ -34,7 +35,6 b' def test_prefilter():'
34 for raw, correct in pairs:
35 for raw, correct in pairs:
35 yield nt.assert_equals(ip.prefilter(raw), correct)
36 yield nt.assert_equals(ip.prefilter(raw), correct)
36
37
37
38 @dec.parametric
38 @dec.parametric
39 def test_autocall_binops():
39 def test_autocall_binops():
40 """See https://bugs.launchpad.net/ipython/+bug/315706"""
40 """See https://bugs.launchpad.net/ipython/+bug/315706"""
@@ -48,4 +48,12 b' def test_autocall_binops():'
48 finally:
48 finally:
49 ip.magic('autocall 0')
49 ip.magic('autocall 0')
50 del ip.user_ns['f']
50 del ip.user_ns['f']
51
51
52 @dec.parametric
53 def test_issue114():
54 """Check that multiline string literals don't expand as magic
55 see http://github.com/ipython/ipython/issues/#issue/114"""
56 template = '"""\n%s\n"""'
57 for mgk in ip.lsmagic():
58 raw = template % mgk
59 yield nt.assert_equals(ip.prefilter(raw), raw)
General Comments 0
You need to be logged in to leave comments. Login now