#NEWLINE# def test_delete_avatar( self ) : #NEWLINE# #INDENT# 'Delete a group avatar.' #NEWLINE# self . test_upload_avatar ( ) #NEWLINE# url = reverse ( 'groups.delete_avatar' , locale = 'en-US' , args = [ self . group_profile . slug ] ) #NEWLINE# r = self . client . get ( url ) #NEWLINE# eq_ ( 200 , r . status_code ) #NEWLINE# r = self . client . post ( url ) #NEWLINE# eq_ ( 302 , r . status_code ) #NEWLINE# url = reverse ( 'groups.profile' , args = [ self . group_profile . slug ] ) #NEWLINE# eq_ ( ( 'http://testserver/en-US' + url ) , r [ 'location' ] ) #NEWLINE# gp = GroupProfile . objects . get ( slug = self . group_profile . slug ) #NEWLINE# eq_ ( '' , self . avatar . name )