summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2016-08-25 22:15:54 +0200
committerTim Graham <timograham@gmail.com>2016-08-25 16:15:54 -0400
commit1e9b07190bff4a9bbb81bcb7131e9c96c3800d6f (patch)
tree8be3e7f9bee043145821a038bb4fc1efb7da8dc1 /accounts
parent8f8d9c3530eaab9598649a3259b79b37ef9935e7 (diff)
Fixed #697 -- Added missing chars to URLConf for profile view.
Diffstat (limited to 'accounts')
-rw-r--r--accounts/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/accounts/tests.py b/accounts/tests.py
index 393b9b95..b7a89336 100644
--- a/accounts/tests.py
+++ b/accounts/tests.py
@@ -20,3 +20,11 @@ class ViewTests(TestCase):
def test_login_redirect(self):
response = self.client.post(reverse('login'), self.credentials)
self.assertRedirects(response, '/accounts/edit/')
+
+ def test_profile_view_reversal(self):
+ """
+ The profile view can be reversed for usernames containing "weird" but
+ valid username characters.
+ """
+ for username in ['asdf', '@asdf', 'asd-f', 'as.df', 'as+df']:
+ reverse('user_profile', host='www', args=[username])