I got the following error in running unit test. 

======================================================================
ERROR: Failure: NoReverseMatch (u'firewalls' is not a registered namespace 
inside 'horizon:project')
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/nova/horizon/.venv/local/lib/python2.7/site-packages/nose/loader.py", 
line 413, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/home/nova/horizon/.venv/local/lib/python2.7/site-packages/nose/importer.py", 
line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/home/nova/horizon/.venv/local/lib/python2.7/site-packages/nose/importer.py", 
line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File 
"/home/nova/horizon/openstack_dashboard/dashboards/project/firewalls/tests.py", 
line 42, in <module>
    class FirewallTests(test.TestCase):
  File 
"/home/nova/horizon/openstack_dashboard/dashboards/project/firewalls/tests.py", 
line 51, in FirewallTests
    INDEX_URL = reverse('horizon:%s:firewalls:index' % DASHBOARD)
  File 
"/home/nova/horizon/.venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py",
 line 489, in reverse
    (key, ':'.join(resolved_path)))
NoReverseMatch: u'firewalls' is not a registered namespace inside 
'horizon:project'


The urls.py syntax I used is consistent with other panels:

….
urlpatterns = patterns(
    'openstack_dashboard.dashboards.project.firewalls.views',
    url(r'^$', IndexView.as_view(), name='index'),
….

Any advice what's wrong?

Thanks!
KC


_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to