#NEWLINE# @ override_settings ( POLICY_CHECK_FUNCTION = policy_backend . check ) #NEWLINE# def test_rule_with_target( self ) : #NEWLINE# #INDENT# body = '{"rules": [["compute", "compute:unlock_override"]]}' #NEWLINE# request = self . mock_rest_request ( body = body ) #NEWLINE# response = policy . Policy ( ) . post ( request ) #NEWLINE# self . assertStatusCode ( response , 200 ) #NEWLINE# self . assertEqual ( response . json , { #NEWLINE# #INDENT# 'allowed' : True , #NEWLINE# #UNINDENT# } )