@@ -475,7 +475,7 @@ def test_list_subscriptions_no_paging(self):
475475 self .assertIsInstance (subscription .topic , Topic )
476476 self .assertEqual (subscription .topic .name , self .TOPIC_NAME )
477477 self .assertIs (subscription ._client , client )
478- self .assertEqual (subscription ._project , self .PROJECT )
478+ self .assertEqual (subscription .project , self .PROJECT )
479479 self .assertIsNone (subscription .ack_deadline )
480480 self .assertEqual (subscription .push_endpoint , self .PUSH_ENDPOINT )
481481
@@ -523,7 +523,7 @@ def test_list_subscriptions_with_paging(self):
523523 self .assertIsInstance (subscription .topic , Topic )
524524 self .assertEqual (subscription .topic .name , self .TOPIC_NAME )
525525 self .assertIs (subscription ._client , client )
526- self .assertEqual (subscription ._project , self .PROJECT )
526+ self .assertEqual (subscription .project , self .PROJECT )
527527 self .assertIsNone (subscription .ack_deadline )
528528 self .assertEqual (subscription .push_endpoint , self .PUSH_ENDPOINT )
529529
@@ -560,7 +560,7 @@ def test_subscription_create(self):
560560
561561 def test_subscription_create_optional_params (self ):
562562 import datetime
563-
563+
564564 from google .cloud .proto .pubsub .v1 .pubsub_pb2 import Subscription
565565
566566 sub_pb = Subscription (name = self .SUB_PATH , topic = self .TOPIC_PATH )
@@ -1009,7 +1009,7 @@ def test_list_snapshots_no_paging(self):
10091009 self .assertIsInstance (snapshot .topic , Topic )
10101010 self .assertEqual (snapshot .topic .name , self .TOPIC_NAME )
10111011 self .assertIs (snapshot ._client , client )
1012- self .assertEqual (snapshot ._project , self .PROJECT )
1012+ self .assertEqual (snapshot .project , self .PROJECT )
10131013
10141014 def test_list_snapshots_with_paging (self ):
10151015 from google .cloud .proto .pubsub .v1 .pubsub_pb2 import (
@@ -1047,7 +1047,7 @@ def test_list_snapshots_with_paging(self):
10471047 self .assertIsInstance (snapshot .topic , Topic )
10481048 self .assertEqual (snapshot .topic .name , self .TOPIC_NAME )
10491049 self .assertIs (snapshot ._client , client )
1050- self .assertEqual (snapshot ._project , self .PROJECT )
1050+ self .assertEqual (snapshot .project , self .PROJECT )
10511051
10521052 def test_subscription_seek_hit (self ):
10531053 gax_api = _GAXSubscriberAPI (_seek_ok = True )
@@ -1548,7 +1548,7 @@ def delete_snapshot(self, snapshot, options=None):
15481548 raise GaxError ('error' )
15491549 if not self ._delete_snapshot_ok :
15501550 raise GaxError ('miss' , self ._make_grpc_not_found ())
1551-
1551+
15521552 def seek (self , subscription , time = None , snapshot = None , options = None ):
15531553 from google .gax .errors import GaxError
15541554
0 commit comments