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 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)