#NEWLINE# def test_public_state_put( self ) : #NEWLINE# #INDENT# 'Testing APIExtraDataAccessHook public state PUT' #NEWLINE# APIExtraDataAccessHook ( self . extension , self . resource , [ ( ( 'public' , ) , ExtraDataAccessLevel . ACCESS_STATE_PUBLIC ) ] ) #NEWLINE# modified_extra_fields = { #NEWLINE# #INDENT# 'extra_data.public' : 'modified' , #NEWLINE# #UNINDENT# } #NEWLINE# rsp = self . api_put ( self . url , modified_extra_fields , expected_mimetype = self . resource . item_mimetype ) #NEWLINE# self . assertEqual ( modified_extra_fields [ 'extra_data.public' ] , rsp [ 'test' ] [ 'public' ] )