#NEWLINE# def test_not_url( self ) : #NEWLINE# #INDENT# response = self . client . patch ( ( response . url + ( '%d/' % self . test_seeds . id ) ) , { #NEWLINE# #INDENT# 'seeds' : json . dumps ( [ 'a' , 'b' ] ) , #NEWLINE# #UNINDENT# } , format = 'json' ) #NEWLINE# assert ( json . loads ( response . content ) [ 'seeds' ] == [ 'The seeds list contains invalid urls.' , { #NEWLINE# #INDENT# '0' : 'a' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# '1' : 'b' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'list' : 'a\nb' , #NEWLINE# #UNINDENT# } ] )