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

  from django.core.urlresolvers import reverse
  from django.test import TestCase
  
  
  class DashboardTest(TestCase):
      def test_dashboard(self):
-         url = reverse('graphite.dashboard.views.dashboard')
+         url = reverse('dashboard')
          response = self.client.get(url)
          self.assertEqual(response.status_code, 200)
  
Update reverse call to use named URL
## Code Before:
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)

## Instruction:
Update reverse call to use named URL
## Code After:
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)
