Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

reports_tests.py 337B

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