Unverified Commit b443e945 authored by David Haynes's avatar David Haynes
Browse files

Test for the view URL

parent 9ad0dbda
......@@ -22,3 +22,11 @@ class UrlsTest(TestCase):
url = reverse('index')
self.assertEqual(url, '/')
"""
# /view/<short> - View URL data.
url(r'^view/(?P<short>[-\w]+)$', go.views.view, name='view'),
"""
def test_view(self):
url = reverse('view', args=['dhaynes'])
self.assertEqual(url, '/view/dhaynes')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment