#NEWLINE# def test_ctor( self ) : #NEWLINE# #INDENT# from gcloud.datastore._generated import datastore_pb2 #NEWLINE# _PROJECT = 'PROJECT' #NEWLINE# _NAMESPACE = 'NAMESPACE' #NEWLINE# connection = _Connection ( ) #NEWLINE# client = _Client ( _PROJECT , connection , self ) #NEWLINE# batch = self . _makeOne ( client ) #NEWLINE# self . assertEqual ( batch . project , _PROJECT ) #NEWLINE# self . assertEqual ( batch . connection , connection ) #NEWLINE# self . assertEqual ( batch . namespace , _NAMESPACE ) #NEWLINE# self . assertTrue ( ( batch . _id is None ) ) #NEWLINE# self . assertEqual ( batch . _status , batch . _INITIAL ) #NEWLINE# self . assertTrue ( isinstance ( batch . _commit_request , datastore_pb2 . CommitRequest ) ) #NEWLINE# self . assertTrue ( ( batch . mutations is batch . _commit_request . mutations ) ) #NEWLINE# self . assertEqual ( batch . _partial_key_entities , [ ] )