def test_magic_parse_options():
 ip = get_ipython()
 path = 'c:\\x'
 m = DummyMagics(ip)
 opts = m.parse_options(('-f %s' % path), 'f:')[0]
 if (os.name == 'posix'):
  expected = 'c:x'
 else:
  expected = path
 nt.assert_equal(opts['f'], expected)

def test_magic_parse_options ( ) : ip = get_ipython ( ) path = 'c:\\x' m = DummyMagics ( ip ) opts = m . parse_options ( ( '-f %s' % path ) , 'f:' ) [ 0 ] if ( os . name == 'posix' ) : expected = 'c:x' else : expected = path nt . assert_equal ( opts [ 'f' ] , expected )
test that we dont mangle paths when parsing magic options .