@@ -98,9 +98,8 @@ def test_read_only_multiplexed(self):
9898 pool .get .assert_not_called ()
9999 pool .put .assert_not_called ()
100100
101- # Verify logger calls.
102- info = manager ._database .logger .info
103- info .assert_called_once_with ("Created multiplexed session." )
101+ # Verify create_session was called.
102+ manager ._database .spanner_api .create_session .assert_called_once ()
104103
105104 def test_partitioned_pooled (self ):
106105 manager = self ._manager
@@ -137,9 +136,8 @@ def test_partitioned_multiplexed(self):
137136 pool .get .assert_not_called ()
138137 pool .put .assert_not_called ()
139138
140- # Verify logger calls.
141- info = manager ._database .logger .info
142- info .assert_called_once_with ("Created multiplexed session." )
139+ # Verify create_session was called.
140+ manager ._database .spanner_api .create_session .assert_called_once ()
143141
144142 def test_read_write_pooled (self ):
145143 manager = self ._manager
@@ -176,9 +174,8 @@ def test_read_write_multiplexed(self):
176174 pool .get .assert_not_called ()
177175 pool .put .assert_not_called ()
178176
179- # Verify logger calls.
180- info = manager ._database .logger .info
181- info .assert_called_once_with ("Created multiplexed session." )
177+ # Verify create_session was called.
178+ manager ._database .spanner_api .create_session .assert_called_once ()
182179
183180 def test_multiplexed_maintenance (self ):
184181 manager = self ._manager
@@ -199,10 +196,6 @@ def test_multiplexed_maintenance(self):
199196 self .assertTrue (session_2 .is_multiplexed )
200197 self .assertNotEqual (session_1 , session_2 )
201198
202- # Verify logger calls.
203- info = manager ._database .logger .info
204- info .assert_called_with ("Created multiplexed session." )
205-
206199 def test_exception_bad_request (self ):
207200 manager = self ._manager
208201 api = manager ._database .spanner_api
0 commit comments