def METHOD_NAME(self):
    """Test when the default gravatar is a url, it gets urlencoded"""
    email = "zephod@gmail.com"
    default = "http://example.com/images/avatar.jpg"
    expected = '<img src="//gravatar.com/avatar/7856421db6a63efa5b248909c472fbd2?s=200&amp;d=http%3A%2F%2Fexample.com%2Fimages%2Favatar.jpg"'
    email_hash = hashlib.md5(six.ensure_binary(email)).hexdigest()
    res = h.gravatar(email_hash, 200, default=default)
    assert expected in res