#NEWLINE# def test_avatar_tag_works_with_username( self ) : #NEWLINE# #INDENT# upload_helper ( self , 'test.png' ) #NEWLINE# avatar = get_primary_avatar ( self . user ) #NEWLINE# result = avatar_tags . avatar ( self . user . username ) #NEWLINE# self . assertIn ( '<img src="{}"' . format ( avatar . avatar_url ( 80 ) ) , result ) #NEWLINE# self . assertIn ( 'alt="test" width="80" height="80" />' , result )