From 390064ec21b1586e28a1c730d654ac0f7c39319f Mon Sep 17 00:00:00 2001
From: Dan Braghis <dan.braghis@torchbox.com>
Date: Tue, 19 Jun 2018 14:13:29 +0100
Subject: [PATCH] Fix test for non-lead access to determination form

---
 opentech/apply/determinations/tests/test_views.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/opentech/apply/determinations/tests/test_views.py b/opentech/apply/determinations/tests/test_views.py
index 4da1d3457..7535f13e1 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()
-- 
GitLab