def test_reset_out():
    "Test '%reset out' magic"
    _ip.run_cell("parrot = 'dead'", store_history=True)
    _ip.run_cell('parrot', store_history=True)
    nt.assert_true(('dead' in [_ip.user_ns[x] for x in ('_', '__', '___')]))
    _ip.magic('reset -f out')
    nt.assert_false(('dead' in [_ip.user_ns[x] for x in ('_', '__', '___')]))
    nt.assert_equal(len(_ip.user_ns['Out']), 0)
Test '%reset out' magic
def test_reset_out():
    
    _ip.run_cell("parrot = 'dead'", store_history=True)
    _ip.run_cell('parrot', store_history=True)
    nt.assert_true(('dead' in [_ip.user_ns[x] for x in ('_', '__', '___')]))
    _ip.magic('reset -f out')
    nt.assert_false(('dead' in [_ip.user_ns[x] for x in ('_', '__', '___')]))
    nt.assert_equal(len(_ip.user_ns['Out']), 0)