def test_reset_in():
    "Test '%reset in' magic"
    _ip.run_cell('parrot', store_history=True)
    nt.assert_true(('parrot' in [_ip.user_ns[x] for x in ('_i', '_ii', '_iii')]))
    _ip.magic('%reset -f in')
    nt.assert_false(('parrot' in [_ip.user_ns[x] for x in ('_i', '_ii', '_iii')]))
    nt.assert_equal(len(set(_ip.user_ns['In'])), 1)
Test '%reset in' magic
def test_reset_in():
    
    _ip.run_cell('parrot', store_history=True)
    nt.assert_true(('parrot' in [_ip.user_ns[x] for x in ('_i', '_ii', '_iii')]))
    _ip.magic('%reset -f in')
    nt.assert_false(('parrot' in [_ip.user_ns[x] for x in ('_i', '_ii', '_iii')]))
    nt.assert_equal(len(set(_ip.user_ns['In'])), 1)