def test_magic_parse_options():
    "Test that we don't mangle paths when parsing magic 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 don't mangle paths when parsing magic options.
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)