diff --git a/opentech/apply/determinations/tests/test_views.py b/opentech/apply/determinations/tests/test_views.py index 4da1d34572aaf4aa80912e7c10dd067e3b291f07..7535f13e1a53a45eff997e0daa9f693e45cfa673 100644 --- a/opentech/apply/determinations/tests/test_views.py +++ b/opentech/apply/determinations/tests/test_views.py @@ -63,8 +63,7 @@ class DeterminationFormTestCase(BaseTestCase): def test_cannot_access_form_if_not_lead(self): submission = ApplicationSubmissionFactory(status='in_discussion') response = self.get_page(submission, 'form') - self.assertContains(response, submission.title) - self.assertContains(response, reverse('funds:submissions:detail', kwargs={'pk': submission.id})) + self.assertEqual(response.status_code, 403) def test_cant_access_wrong_status(self): submission = ApplicationSubmissionFactory()