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

def test_no_urls_exception(self):

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