#NEWLINE# def test_grant_open_access_to_location_if_already_granted( self ) : #NEWLINE# #INDENT# location = self . add_location ( ) #NEWLINE# open_access_url = ( location [ 'self' ] + 'open-access/' ) #NEWLINE# put_response1 = self . put ( open_access_url , { #NEWLINE# #INDENT# 'requireLogin' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# put_response2 = self . put ( self , { #NEWLINE# #INDENT# 'requireLogin' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( 200 , put_response2 . status_code ) #NEWLINE# self . assertFalse ( put_response2 . has_header ( 'Location' ) ) #NEWLINE# self . assertEqual ( put_response1 . content , put_response2 . content )