#NEWLINE# def test_invalid_check( self ) : #NEWLINE# #INDENT# resp = self . client . put ( self . path , data = { #NEWLINE# #INDENT# 'checks' : '[{"type": "invalid"}]' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( resp . status_code == 400 ) #NEWLINE# data = json . loads ( data . data ) #NEWLINE# assert ( data [ 'error_name' ] == 'invalid_check' )