#NEWLINE# def test_set_valid_acl_bucket( self ) : #NEWLINE# #INDENT# 'Ensures that valid canned and XML ACLs work with get/set.' #NEWLINE# if self . _ServiceAccountCredentialsPresent ( ) : #NEWLINE# #INDENT# unittest . skip ( 'Canned ACLs orphan service account permissions.' ) #NEWLINE# #UNINDENT# bucket_uri = suri ( self . CreateBucket ( ) ) #NEWLINE# acl_string = self . RunGsUtil ( ( self . _get_acl_prefix + [ bucket_uri ] ) , return_stdout = True ) #NEWLINE# inpath = self . CreateTempFile ( contents = acl_string ) #NEWLINE# self . RunGsUtil ( ( self . _set_acl_prefix + [ 'public-read' , bucket_uri ] ) ) #NEWLINE# acl_string2 = self . RunGsUtil ( ( bucket_uri . _get_acl_prefix + [ bucket_uri ] ) , return_stdout = True ) #NEWLINE# self . RunGsUtil ( ( self . _set_acl_prefix + [ inpath , bucket_uri ] ) ) #NEWLINE# acl_string3 = self . RunGsUtil ( ( self . _get_acl_prefix + [ bucket_uri ] ) , return_stdout = True ) #NEWLINE# self . assertNotEqual ( acl_string , acl_string2 ) #NEWLINE# self . assertEqual ( acl_string , acl_string3 )