You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reports_tests.py 360B

12345678910111213
  1. from django.test import TestCase
  2. from django.core.urlresolvers import reverse
  3. from oscar.test import ClientTestCase
  4. class ReportsDashboardTests(ClientTestCase):
  5. is_staff = True
  6. def test_dashboard_is_accessible_to_staff(self):
  7. url = reverse('dashboard:reports-index')
  8. response = self.client.get(url)
  9. self.assertIsOk(response)