'RegexURLResolver should raise an exception when no urlpatterns exist.'

def test_no_urls_exception(self):

    resolver = RegexURLResolver('^$', self.urls)
    self.assertRaisesErrorWithMessage(ImproperlyConfigured, "The    included    urlconf    regressiontests.urlpatterns_reverse.no_urls    doesn't    have    any    patterns    in    it", getattr, resolver, 'url_patterns')
