#NEWLINE# def test_revoke_open_access_to_location( self ) : #NEWLINE# #INDENT# location = self . add_location ( ) #NEWLINE# open_access_url = ( location [ 'self' ] + 'open-access/' ) #NEWLINE# self . put ( open_access_url , { #NEWLINE# #INDENT# 'requireLogin' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# delete_response = self . delete ( open_access_url ) #NEWLINE# self . assertEqual ( 204 , delete_response . status_code ) #NEWLINE# get_response = self . get ( open_access_url ) #NEWLINE# self . assertEqual ( 404 , get_response . status_code )