@@ -0,0 +1,703 @@
+from django.core.urlresolvers import resolve, reverse%0Afrom django.test import TestCase%0A%0A%0Aclass URLsTestCase(TestCase):%0A    %22%22%22A TestCase with a check_url helper method for testing urls%22%22%22%0A%0A    def check_url(self, view_class, url, url_name, url_args=None, url_kwargs=None):%0A        %22%22%22%0A        Assert a view's url is correctly configured%0A%0A        Check the url_name reverses to give a correctly formated url.%0A        Check the url resolves to the correct view.%0A        %22%22%22%0A%0A        reversed_url = reverse(url_name, args=url_args, kwargs=url_kwargs)%0A        self.assertEqual(reversed_url, url)%0A%0A        resolved_view_class = resolve(url).func.cls%0A        self.assertEqual(resolved_view_class, view_class)%0A

Add URLsTestCase