def test_magic_parse_long_options():
    'Magic.parse_options can handle --foo=bar long options'
    ip = get_ipython()
    m = DummyMagics(ip)
    (opts, _) = m.parse_options('--foo --bar=bubble', 'a', 'foo', 'bar=')
    nt.assert_in('foo', opts)
    nt.assert_in('bar', opts)
    nt.assert_equal(opts['bar'], 'bubble')
Magic.parse_options can handle --foo=bar long options
def test_magic_parse_long_options():
    
    ip = get_ipython()
    m = DummyMagics(ip)
    (opts, _) = m.parse_options('--foo --bar=bubble', 'a', 'foo', 'bar=')
    nt.assert_in('foo', opts)
    nt.assert_in('bar', opts)
    nt.assert_equal(opts['bar'], 'bubble')