from django.core.urlresolvers import reverse
from django.test import TestCase


class DashboardTest(TestCase):
    def test_dashboard(self):
        url = reverse('graphite.dashboard.views.dashboard')
        response = self.client.get(url)
        self.assertEqual(response.status_code, 200)

from django.core.urlresolvers import reverse
from django.test import TestCase


class DashboardTest(TestCase):
    def test_dashboard(self):
        url = reverse('dashboard')
        response = self.client.get(url)
        self.assertEqual(response.status_code, 200)

Update reverse call to use named URL
Update reverse call to use named URL
