#NEWLINE# def test_remove_url_filter( self ) : #NEWLINE# #INDENT# t = Template ( '{% load relationship_tags %}{{ user|remove_relationship_url:"following" }}' ) #NEWLINE# c = Context ( { #NEWLINE# #INDENT# 'user' : self . paul , #NEWLINE# #UNINDENT# } ) #NEWLINE# rendered = t . render ( c ) #NEWLINE# url = reverse ( 'relationship_remove' , args = [ 'Paul' , 'following' ] ) #NEWLINE# self . assertEqual ( rendered , url ) #NEWLINE# t = Template ( '{% load relationship_tags %}{{ user|remove_relationship_url:"friends" }}' ) #NEWLINE# c = Context ( { #NEWLINE# #INDENT# 'user' : self . paul , #NEWLINE# #UNINDENT# } ) #NEWLINE# rendered = t . render ( c ) #NEWLINE# url = reverse ( 'relationship_remove' , args = [ 'Paul' , 'friends' ] ) #NEWLINE# self . assertEqual ( rendered , url ) #NEWLINE# t = Template ( '{% load relationship_tags %}{{ user|remove_relationship_url:blocking }}' ) #NEWLINE# c = Context ( { #NEWLINE# #INDENT# 'user' : self . paul , #NEWLINE# 'blocking' : self . blocking , #NEWLINE# #UNINDENT# } ) #NEWLINE# rendered = t . render ( c ) #NEWLINE# url = reverse ( 'relationship_remove' , args = [ 'Paul' , 'blocking' ] ) #NEWLINE# self . assertEqual ( rendered , url )