Ejemplo n.º 1
0
 def test_basic(self):
     """Passing an email returns the gravatar url for that email."""
     url = gravatar('*****@*****.**')
     eq_(
         url,
         'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=80&d={default}'
         .format(default=self.default))
Ejemplo n.º 2
0
 def test_user(self):
     """Passing a user returns the gravatar url for that user's email."""
     user = UserFactory.create(email='*****@*****.**')
     url = gravatar(user)
     eq_(url,
         'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=80&d={default}'
         .format(default=self.default))
Ejemplo n.º 3
0
 def test_user(self):
     """Passing a user returns the gravatar url for that user's email."""
     user = UserFactory.create(email='*****@*****.**')
     url = gravatar(user)
     eq_(
         url,
         'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=80&d={default}'
         .format(default=self.default))
Ejemplo n.º 4
0
 def test_size(self):
     url = gravatar('*****@*****.**', size=40)
     eq_(
         url,
         'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=40&d={default}'
         .format(default=self.default))
Ejemplo n.º 5
0
 def test_size(self):
     url = gravatar('*****@*****.**', size=40)
     eq_(url,
         'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=40&d={default}'
         .format(default=self.default))
Ejemplo n.º 6
0
 def test_basic(self):
     """Passing an email returns the gravatar url for that email."""
     url = gravatar('*****@*****.**')
     eq_(url,
         'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=80&d={default}'
         .format(default=self.default))
Ejemplo n.º 7
0
 def test_size(self):
     url = gravatar('*****@*****.**', size=40)
     eq_(url, 'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=40&d=mm')