def test_append(hist, config_stub):
 config_stub.data = CONFIG_NOT_PRIVATE
 hist.append('new item')
 assert ('new item' in hist.history)
 hist.history.remove('new item')
 assert (hist.history == HISTORY)

def test_append ( hist , config_stub ) : config_stub . data = CONFIG_NOT_PRIVATE hist . append ( 'new item' ) assert ( 'new item' in hist . history ) hist . history . remove ( 'new item' ) assert ( hist . history == HISTORY )
test append outside private mode .