aboutsummaryrefslogtreecommitdiff
path: root/django_openid_auth
diff options
context:
space:
mode:
authorAnthony Lenton <anthony.lenton@canonical.com>2013-03-14 14:48:16 -0300
committerAnthony Lenton <anthony.lenton@canonical.com>2013-03-14 14:48:16 -0300
commit6839073d9db5cc831afc62c5099f36bc26a38619 (patch)
treea94381aaf9c86e1f8d8b385625f32d6ca6ebb07f /django_openid_auth
parent492e901522370697db47b009de2138a3b6e3b888 (diff)
Made tests pass in 1.1 again, and added a tox file.
Diffstat (limited to 'django_openid_auth')
-rw-r--r--django_openid_auth/tests/test_views.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/django_openid_auth/tests/test_views.py b/django_openid_auth/tests/test_views.py
index 40913f5..2860951 100644
--- a/django_openid_auth/tests/test_views.py
+++ b/django_openid_auth/tests/test_views.py
@@ -267,11 +267,10 @@ class RelyingPartyTests(TestCase):
def test_login_with_nonascii_return_to(self):
"""Ensure non-ascii characters can be used for the 'next' arg."""
- for url in [u'/files/moño.jpg', u'/files/ñandú.jpg'.encode('utf-8')]:
- response = self.client.post('/openid/login/',
- {'openid_identifier': 'http://example.com/identity',
- 'next': url})
- self.assertContains(response, 'OpenID transaction in progress')
+ response = self.client.post('/openid/login/',
+ {'openid_identifier': 'http://example.com/identity',
+ 'next': u'/files/ñandú.jpg'.encode('utf-8')})
+ self.assertContains(response, 'OpenID transaction in progress')
def test_login_no_next(self):
"""Logins with no next parameter redirect to LOGIN_REDIRECT_URL."""