#NEWLINE# def test_not_array( self ) : #NEWLINE# #INDENT# response = self . client . patch ( ( self . url + ( '%d/' % self . test_seeds . id ) ) , { #NEWLINE# #INDENT# 'seeds' : json . dumps ( 'http://www.lolcats.com/\nhttp://www.reddit.com/r/me_irl/' ) , #NEWLINE# #UNINDENT# } , format = 'json' ) #NEWLINE# assert ( json . loads ( response . content ) [ 'seeds' ] [ 0 ] == 'Seeds must be an array of URLs.' )