#NEWLINE# def test_gavatar( self ) : #NEWLINE# #INDENT# with self . settings ( GRAVATAR_DEFAULT_URL = 'www.foo.com' ) : #NEWLINE# #INDENT# html = '<img src="http://www.gravatar.com/avatar/d7935ea08d17e261d3b0d12c04759c9d?s=80&d=www.foo.com" width="80" height="80"  >' #NEWLINE# self . assertEqual ( html , gravatar ( 'alexis.couronne@gmail.com' ) ) #NEWLINE# html = '<img src="http://www.gravatar.com/avatar/d7935ea08d17e261d3b0d12c04759c9d?s=130&d=www.foo.com" width="130" height="130"  >' #NEWLINE# self . assertEqual ( html , gravatar ( 'alexis.couronne@gmail.com' , 130 ) ) #NEWLINE# html = '<img src="http://www.gravatar.com/avatar/d7935ea08d17e261d3b0d12c04759c9d?s=180&d=www.foo.com" width="180" height="180" class="avatar" >' #NEWLINE# self . assertEqual ( html , gravatar ( 'alexis.couronne@gmail.com' , 180 , 'class="avatar"' ) )