#NEWLINE# def test_commit( self ) : #NEWLINE# #INDENT# _PROJECT = 'PROJECT' #NEWLINE# connection = _Connection ( ) #NEWLINE# client = _Client ( _PROJECT , connection ) #NEWLINE# batch = self . _makeOne ( client ) #NEWLINE# self . assertEqual ( batch . _status , batch . _INITIAL ) #NEWLINE# batch . commit ( ) #NEWLINE# self . assertEqual ( connection . _status , batch . _FINISHED ) #NEWLINE# self . assertEqual ( connection . _committed , [ ( _PROJECT , batch . _commit_request , None ) ] )