def test_multiple_magics():
    ip = get_ipython()
    foo1 = FooFoo(ip)
    foo2 = FooFoo(ip)
    mm = ip.magics_manager
    mm.register(foo1)
    nt.assert_true((mm.magics['line']['foo'].__self__ is foo1))
    mm.register(foo2)
    nt.assert_true((mm.magics['line']['foo'].__self__ is foo2))
def test_multiple_magics():
    ip = get_ipython()
    foo1 = FooFoo(ip)
    foo2 = FooFoo(ip)
    mm = ip.magics_manager
    mm.register(foo1)
    nt.assert_true((mm.magics['line']['foo'].__self__ is foo1))
    mm.register(foo2)
    nt.assert_true((mm.magics['line']['foo'].__self__ is foo2))