def test_issue_114():
 template = '"""\n%s\n"""'
 msp = ip.prefilter_manager.multi_line_specials
 ip.prefilter_manager.multi_line_specials = False
 try:
  for mgk in ip.magics_manager.lsmagic()['line']:
   raw = (template % mgk)
   nt.assert_equal(ip.prefilter(raw), raw)
 finally:
  ip.prefilter_manager.multi_line_specials = msp

def test_issue_114 ( ) : template = '"""\n%s\n"""' msp = ip . prefilter_manager . multi_line_specials ip . prefilter_manager . multi_line_specials = False try : for mgk in ip . magics_manager . lsmagic ( ) [ 'line' ] : raw = ( template % mgk ) nt . assert_equal ( ip . prefilter ( raw ) , raw ) finally : ip . prefilter_manager . multi_line_specials = msp
check that multiline string literals dont expand as magic see URL .