#NEWLINE# def test_grant_access_creates_allowed_user_resource( self ) : #NEWLINE# #INDENT# location_url = self . add_location ( ) [ 'self' ] #NEWLINE# response = self . add_user ( ) #NEWLINE# user_uuid = extract_uuid ( response [ 'id' ] ) #NEWLINE# self . assertFalse ( self . can_access ( location_url , user_uuid ) ) #NEWLINE# self . put ( ( ( ( location_url + 'allowed-users/' ) + user_uuid ) + '/' ) ) #NEWLINE# self . assertTrue ( self . can_access ( location_url , user_uuid ) )