#NEWLINE# def testGetCommentPermalinkFormatted( self ) : #NEWLINE# #INDENT# ( c1 , c2 , c3 , c4 ) = self . createSomeComments ( ) #NEWLINE# t = '{% load comments %}{% get_comment_list for comment_tests.author author.id as cl %}' #NEWLINE# t += "{% get_comment_permalink cl.0 '#c%(id)s-by-%(user_name)s' %}" #NEWLINE# ct = ContentType . objects . get_for_model ( Author ) #NEWLINE# author = Author . objects . get ( pk = 1 ) #NEWLINE# ( ctx , out ) = self . render ( t , author = author ) #NEWLINE# self . assertEqual ( out , ( '/cr/%s/%s/#c%s-by-Joe Somebody' % ( ct . id , author . id , c4 . id ) ) )