def test_xmode():
    xmode = _ip.InteractiveTB.mode
    for i in range(4):
        _ip.magic('xmode')
    nt.assert_equal(_ip.InteractiveTB.mode, xmode)
def test_xmode():
    xmode = _ip.InteractiveTB.mode
    for i in range(4):
        _ip.magic('xmode')
    nt.assert_equal(_ip.InteractiveTB.mode, xmode)