def test_avatar(self): u = User(username='******', email='*****@*****.**') self.assertEqual(u.avatar(128), ('https://www.gravatar.com/avatar/' '93bb94201b62f74f4cc21109a8fe29bf' '?d=identicon&s=128'))
def test_avatar(self): u = User(nickname='john', email='*****@*****.**') avatar = u.avatar(50) expected = 'http://www.gravatar.com/avatar/' \ 'd4c74594d841139328695756648b6bd' assert avatar[0:len(expected)] == expected
def test_avatar(self): u = User(nickname='TestUser', email='*****@*****.**') avatar = u.avatar(128) expected = 'http://www.gravatar.com/avatar/93942e96f5acd83e2e047ad8fe03114d?d=identicon&s=128' assert avatar[0:len(expected)] == expected
def test_avatar(self): u = User(username='******', email='*****@*****.**') self.assertEqual(u.avatar(128), ('https://www.gravatar.com/avatar/' 'd4c74594d841139328695756648b6bd6' '?d=identicon&s=128'))