Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

reports_tests.py 377B

12345678910111213
  1. from django.test import TestCase
  2. from django.core.urlresolvers import reverse
  3. from oscar_testsupport.testcases 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)