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))

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 ) )
test that %reset in preserves in[] length .