|
a/Allura/allura/tests/functional/test_gravatar.py |
|
b/Allura/allura/tests/functional/test_gravatar.py |
|
... |
|
... |
14 |
|
14 |
|
15 |
def test_url(self):
|
15 |
def test_url(self):
|
16 |
email = 'Wolf@example.com'
|
16 |
email = 'Wolf@example.com'
|
17 |
expected_id = 'd3514940ac1b2051c8aa42970d17e3fe'
|
17 |
expected_id = 'd3514940ac1b2051c8aa42970d17e3fe'
|
18 |
url = urlparse(gravatar.url(email=email))
|
18 |
url = urlparse(gravatar.url(email=email))
|
19 |
assert url.netloc == 'gravatar.com'
|
19 |
assert url.netloc == 'secure.gravatar.com'
|
20 |
assert url.path == '/avatar/' + expected_id
|
20 |
assert url.path == '/avatar/' + expected_id
|
21 |
|
21 |
|
22 |
def test_defaults(self):
|
22 |
def test_defaults(self):
|
23 |
email = 'Wolf@example.com'
|
23 |
email = 'Wolf@example.com'
|
24 |
url = urlparse(gravatar.url(email=email, rating='x'))
|
24 |
url = urlparse(gravatar.url(email=email, rating='x'))
|