Show More
@@ -711,3 +711,14 b' def test_line_cell_info():' | |||
|
711 | 711 | nt.assert_true(oinfo['found']) |
|
712 | 712 | nt.assert_true(oinfo['ismagic']) |
|
713 | 713 | nt.assert_equals(oinfo['docstring'], FooFoo.line_foo.__doc__) |
|
714 | ||
|
715 | def test_multiple_magics(): | |
|
716 | ip = get_ipython() | |
|
717 | foo1 = FooFoo(ip) | |
|
718 | foo2 = FooFoo(ip) | |
|
719 | mm = ip.magics_manager | |
|
720 | mm.register(foo1) | |
|
721 | nt.assert_true(mm.magics['line']['foo'].im_self is foo1) | |
|
722 | mm.register(foo2) | |
|
723 | nt.assert_true(mm.magics['line']['foo'].im_self is foo2) | |
|
724 | No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now