def test_no_urls_exception(self):
        resolver = RegexURLResolver(r'^$', self.urls)

        self.assertRaisesErrorWithMessage(ImproperlyConfigured,
            "The included urlconf regressiontests.urlpatterns_reverse.no_urls "\
            "doesn't have any patterns in it", getattr, resolver, 'url_patterns')
RegexURLResolver should raise an exception when no urlpatterns exist.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/urlpatterns_reverse/tests.py/NoURLPatternsTests.test_no_urls_exception