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 325B

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