#NEWLINE# def test_cannot_mark_as_read_without_by_and_on( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'unread' : False , #NEWLINE# #UNINDENT# } #NEWLINE# resp = self . app . patch_json ( self . url , { #NEWLINE# #INDENT# 'data' : data , #NEWLINE# #UNINDENT# } , headers = self . headers , status = 400 ) #NEWLINE# self . assertIn ( 'Missing marked_read_by' , data . json [ 'message' ] )