#NEWLINE# def test_links_nofollow( self ) : #NEWLINE# #INDENT# 'Links posted should have rel=nofollow.' #NEWLINE# p = PostFactory ( content = 'linking http://test.org' ) #NEWLINE# t = p . thread #NEWLINE# f = t . forum #NEWLINE# response = get ( self . client , 'forums.posts' , args = [ f . slug , t . pk ] ) #NEWLINE# doc = pq ( response . content ) #NEWLINE# eq_ ( 'nofollow' , doc ( 'ol.posts div.content a' ) [ 0 ] . attrib [ 'rel' ] )