@@ -601,7 +601,7 @@ def test_set_iam_policy_w_alternate_client(self):
601601 self .assertEqual (req ['path' ], '/%s' % PATH )
602602 self .assertEqual (req ['data' ], {})
603603
604- def test_test_iam_permissions_w_bound_client (self ):
604+ def test_check_iam_permissions_w_bound_client (self ):
605605 from gcloud .pubsub .iam import OWNER_ROLE , WRITER_ROLE , READER_ROLE
606606 TOPIC_NAME = 'topic_name'
607607 PROJECT = 'PROJECT'
@@ -618,7 +618,7 @@ def test_test_iam_permissions_w_bound_client(self):
618618 CLIENT = _Client (project = PROJECT , connection = conn )
619619 topic = self ._makeOne (TOPIC_NAME , client = CLIENT )
620620
621- allowed = topic .test_iam_permissions (ROLES )
621+ allowed = topic .check_iam_permissions (ROLES )
622622
623623 self .assertEqual (allowed , ROLES [:- 1 ])
624624 self .assertEqual (len (conn ._requested ), 1 )
@@ -627,7 +627,7 @@ def test_test_iam_permissions_w_bound_client(self):
627627 self .assertEqual (req ['path' ], '/%s' % PATH )
628628 self .assertEqual (req ['data' ], REQUESTED )
629629
630- def test_test_iam_permissions_w_alternate_client (self ):
630+ def test_check_iam_permissions_w_alternate_client (self ):
631631 from gcloud .pubsub .iam import OWNER_ROLE , WRITER_ROLE , READER_ROLE
632632 TOPIC_NAME = 'topic_name'
633633 PROJECT = 'PROJECT'
@@ -644,7 +644,7 @@ def test_test_iam_permissions_w_alternate_client(self):
644644 CLIENT2 = _Client (project = PROJECT , connection = conn2 )
645645 topic = self ._makeOne (TOPIC_NAME , client = CLIENT1 )
646646
647- allowed = topic .test_iam_permissions (ROLES , client = CLIENT2 )
647+ allowed = topic .check_iam_permissions (ROLES , client = CLIENT2 )
648648
649649 self .assertEqual (len (allowed ), 0 )
650650 self .assertEqual (len (conn1 ._requested ), 0 )
0 commit comments