def test_append_empty_history(hist, config_stub):
 config_stub.data = CONFIG_NOT_PRIVATE
 hist.history = []
 hist.append('item')
 assert (hist[0] == 'item')

def test_append_empty_history ( hist , config_stub ) : config_stub . data = CONFIG_NOT_PRIVATE hist . history = [ ] hist . append ( 'item' ) assert ( hist [ 0 ] == 'item' )
test append when .