@@ -106,7 +106,7 @@ def test_ctor_w_ddl_statements_ok(self):
106106 self .assertEqual (list (database .ddl_statements ), DDL_STATEMENTS )
107107
108108 def test_from_pb_bad_database_name (self ):
109- from google .cloud .proto . spanner . admin . database . v1 import (
109+ from google .cloud .spanner_admin_database_v1 . proto import (
110110 spanner_database_admin_pb2 as admin_v1_pb2 )
111111
112112 database_name = 'INCORRECT_FORMAT'
@@ -117,7 +117,7 @@ def test_from_pb_bad_database_name(self):
117117 klass .from_pb (database_pb , None )
118118
119119 def test_from_pb_project_mistmatch (self ):
120- from google .cloud .proto . spanner . admin . database . v1 import (
120+ from google .cloud .spanner_admin_database_v1 . proto import (
121121 spanner_database_admin_pb2 as admin_v1_pb2 )
122122
123123 ALT_PROJECT = 'ALT_PROJECT'
@@ -130,7 +130,7 @@ def test_from_pb_project_mistmatch(self):
130130 klass .from_pb (database_pb , instance )
131131
132132 def test_from_pb_instance_mistmatch (self ):
133- from google .cloud .proto . spanner . admin . database . v1 import (
133+ from google .cloud .spanner_admin_database_v1 . proto import (
134134 spanner_database_admin_pb2 as admin_v1_pb2 )
135135
136136 ALT_INSTANCE = '/projects/%s/instances/ALT-INSTANCE' % (
@@ -144,7 +144,7 @@ def test_from_pb_instance_mistmatch(self):
144144 klass .from_pb (database_pb , instance )
145145
146146 def test_from_pb_success_w_explicit_pool (self ):
147- from google .cloud .proto . spanner . admin . database . v1 import (
147+ from google .cloud .spanner_admin_database_v1 . proto import (
148148 spanner_database_admin_pb2 as admin_v1_pb2 )
149149
150150 client = _Client ()
@@ -161,7 +161,7 @@ def test_from_pb_success_w_explicit_pool(self):
161161 self .assertIs (database ._pool , pool )
162162
163163 def test_from_pb_success_w_hyphen_w_default_pool (self ):
164- from google .cloud .proto . spanner . admin . database . v1 import (
164+ from google .cloud .spanner_admin_database_v1 . proto import (
165165 spanner_database_admin_pb2 as admin_v1_pb2 )
166166 from google .cloud .spanner .pool import BurstyPool
167167
@@ -411,7 +411,7 @@ def test_exists_not_found(self):
411411 [('google-cloud-resource-prefix' , database .name )])
412412
413413 def test_exists_success (self ):
414- from google .cloud .proto . spanner . admin . database . v1 import (
414+ from google .cloud .spanner_admin_database_v1 . proto import (
415415 spanner_database_admin_pb2 as admin_v1_pb2 )
416416 from tests ._fixtures import DDL_STATEMENTS
417417
@@ -468,7 +468,7 @@ def test_reload_not_found(self):
468468 [('google-cloud-resource-prefix' , database .name )])
469469
470470 def test_reload_success (self ):
471- from google .cloud .proto . spanner . admin . database . v1 import (
471+ from google .cloud .spanner_admin_database_v1 . proto import (
472472 spanner_database_admin_pb2 as admin_v1_pb2 )
473473 from tests ._fixtures import DDL_STATEMENTS
474474
0 commit comments