def test_reset_in_length():
    "Test that '%reset in' preserves In[] length"
    _ip.run_cell("print 'foo'")
    _ip.run_cell('reset -f in')
    nt.assert_equal(len(_ip.user_ns['In']), (_ip.displayhook.prompt_count + 1))
Test that '%reset in' preserves In[] length
def test_reset_in_length():
    
    _ip.run_cell("print 'foo'")
    _ip.run_cell('reset -f in')
    nt.assert_equal(len(_ip.user_ns['In']), (_ip.displayhook.prompt_count + 1))