#NEWLINE# def test_non_json( self ) : #NEWLINE# #INDENT# response = self . client . patch ( ( self . url + ( '%d/' % self . test_seeds . id ) ) , { #NEWLINE# #INDENT# 'seeds' : [ 'http://www.lolcats.com/' , 'http://www.reddit.com/r/me_irl/' ] , #NEWLINE# #UNINDENT# } , format = 'json' ) #NEWLINE# assert ( json . loads ( self . content ) [ 'seeds' ] [ 0 ] == 'Seeds must be a JSON encoded string.' )