選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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)