@@ -90,18 +90,18 @@ def test__require_connection_implicit_set_passed_explicitly(self):
9090 self .assertTrue (self ._callFUT (CONNECTION ) is CONNECTION )
9191
9292
93- class Test_get_entities_function (unittest2 .TestCase ):
93+ class Test_get_function (unittest2 .TestCase ):
9494
9595 def _callFUT (self , keys , missing = None , deferred = None , connection = None ):
96- from gcloud .datastore import get_entities
97- return get_entities (keys , missing = missing , deferred = deferred ,
98- connection = connection )
96+ from gcloud .datastore . api import get
97+ return get (keys , missing = missing , deferred = deferred ,
98+ connection = connection )
9999
100- def test_get_entities_no_keys (self ):
100+ def test_get_no_keys (self ):
101101 results = self ._callFUT ([])
102102 self .assertEqual (results , [])
103103
104- def test_get_entities_miss (self ):
104+ def test_get_miss (self ):
105105 from gcloud .datastore .key import Key
106106 from gcloud .datastore .test_connection import _Connection
107107
@@ -111,7 +111,7 @@ def test_get_entities_miss(self):
111111 results = self ._callFUT ([key ], connection = connection )
112112 self .assertEqual (results , [])
113113
114- def test_get_entities_miss_w_missing (self ):
114+ def test_get_miss_w_missing (self ):
115115 from gcloud .datastore import datastore_v1_pb2 as datastore_pb
116116 from gcloud .datastore .key import Key
117117 from gcloud .datastore .test_connection import _Connection
@@ -138,7 +138,7 @@ def test_get_entities_miss_w_missing(self):
138138 self .assertEqual ([missed .key .to_protobuf () for missed in missing ],
139139 [key .to_protobuf ()])
140140
141- def test_get_entities_miss_w_deferred (self ):
141+ def test_get_miss_w_deferred (self ):
142142 from gcloud .datastore .key import Key
143143 from gcloud .datastore .test_connection import _Connection
144144
@@ -172,7 +172,7 @@ def _make_entity_pb(self, dataset_id, kind, integer_id,
172172
173173 return entity_pb
174174
175- def test_get_entities_hit (self ):
175+ def test_get_hit (self ):
176176 from gcloud .datastore .key import Key
177177 from gcloud .datastore .test_connection import _Connection
178178
@@ -199,7 +199,7 @@ def test_get_entities_hit(self):
199199 self .assertEqual (list (result ), ['foo' ])
200200 self .assertEqual (result ['foo' ], 'Foo' )
201201
202- def test_get_entities_hit_multiple_keys_same_dataset (self ):
202+ def test_get_hit_multiple_keys_same_dataset (self ):
203203 from gcloud .datastore .key import Key
204204 from gcloud .datastore .test_connection import _Connection
205205
@@ -226,7 +226,7 @@ def test_get_entities_hit_multiple_keys_same_dataset(self):
226226 self .assertEqual (retrieved2 .key .path , key2 .path )
227227 self .assertEqual (dict (retrieved2 ), {})
228228
229- def test_get_entities_hit_multiple_keys_different_dataset (self ):
229+ def test_get_hit_multiple_keys_different_dataset (self ):
230230 from gcloud .datastore .key import Key
231231
232232 DATASET_ID1 = 'DATASET'
@@ -240,7 +240,7 @@ def test_get_entities_hit_multiple_keys_different_dataset(self):
240240 with self .assertRaises (ValueError ):
241241 self ._callFUT ([key1 , key2 ], connection = object ())
242242
243- def test_get_entities_implicit (self ):
243+ def test_get_implicit (self ):
244244 from gcloud .datastore import _implicit_environ
245245 from gcloud .datastore .key import Key
246246 from gcloud .datastore .test_connection import _Connection
@@ -281,7 +281,7 @@ def test_get_entities_implicit(self):
281281class Test_allocate_ids_function (unittest2 .TestCase ):
282282
283283 def _callFUT (self , incomplete_key , num_ids , connection = None ):
284- from gcloud .datastore import allocate_ids
284+ from gcloud .datastore . api import allocate_ids
285285 return allocate_ids (incomplete_key , num_ids , connection = connection )
286286
287287 def test_allocate_ids (self ):
0 commit comments