Esempio n. 1
0
 def test_user(self):
     """Passing a user returns the gravatar url for that user's email."""
     url = gravatar_url(self.user)
     assert_equal(
         url, 'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=80&d=mm')
Esempio n. 2
0
 def test_basic(self):
     """Passing an email returns the gravatar url for that email."""
     url = gravatar_url('*****@*****.**')
     assert_equal(
         url, 'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=80&d=mm')