#NEWLINE# @ override_settings ( WAGTAILAPI_LIMIT_MAX = 10 ) #NEWLINE# def test_limit_maximum_can_be_changed( self ) : #NEWLINE# #INDENT# response = self . get_response ( limit = 20 ) #NEWLINE# content = json . loads ( response . content . decode ( 'UTF-8' ) ) #NEWLINE# self . assertEqual ( response . status_code , 400 ) #NEWLINE# self . assertEqual ( response , { #NEWLINE# #INDENT# 'message' : 'limit cannot be higher than 10' , #NEWLINE# #UNINDENT# } )