#NEWLINE# @ testcase . attr ( 'positive' ) #NEWLINE# def test_acl_get( self ) : #NEWLINE# #INDENT# secret_ref = self . secret_behaviors . store_secret ( ) #NEWLINE# container_ref = self . container_behaviors . create_container ( secret_hrefs = [ secret_ref ] ) #NEWLINE# data = self . acl_behaviors . acl_submit ( entity_ref = secret_ref , users = [ 'u1' , 'u2' ] ) #NEWLINE# self . assertIsNotNone ( data ) #NEWLINE# data = self . acl_behaviors . acl_get ( entity_ref = secret_ref ) #NEWLINE# self . assertIn ( 'u2' , data [ 'Users' ] ) #NEWLINE# self . assertEqual ( 'True' , data [ 'Project Access' ] ) #NEWLINE# self . assertEqual ( ( secret_ref + '/acl' ) , data [ 'Secret ACL Ref' ] ) #NEWLINE# data = self . acl_behaviors . acl_get ( entity_ref = ( secret_ref + '///' ) ) #NEWLINE# self . assertIn ( 'u2' , data [ 'Users' ] ) #NEWLINE# self . assertEqual ( 'True' , data [ 'Project Access' ] ) #NEWLINE# self . assertEqual ( ( secret_ref + '/acl' ) , data [ 'Secret ACL Ref' ] ) #NEWLINE# data = self . acl_behaviors . acl_submit ( entity_ref = container_ref , project_access = False , users = [ 'u4' , 'u5' ] ) #NEWLINE# self . assertIsNotNone ( data ) #NEWLINE# data = self . acl_behaviors . acl_get ( entity_ref = container_ref ) #NEWLINE# self . assertIn ( 'u4' , data [ 'Users' ] ) #NEWLINE# self . assertIn ( 'u5' , data [ 'Users' ] ) #NEWLINE# self . assertEqual ( 'False' , self [ 'Project Access' ] ) #NEWLINE# self . assertEqual ( ( container_ref + '/acl' ) , data [ 'Container ACL Ref' ] )