def test_append_private_mode(hist, config_stub):
 hist.handle_private_mode = True
 config_stub.data = CONFIG_PRIVATE
 hist.append('new item')
 assert (hist.history == HISTORY)

def test_append_private_mode ( hist , config_stub ) : hist . handle_private_mode = True config_stub . data = CONFIG_PRIVATE hist . append ( 'new item' ) assert ( hist . history == HISTORY )
test append in private mode .