def test_applicant_with_submission(self): submission = factories.FormSubmissionWithOrgsFactory.create( organizations=[self.ebclc, self.cc_pubdef]) self.set_session(applicant_id=submission.applicant_id) response = self.client.get(reverse(self.view_name)) for org in submission.organizations.all(): self.assertContains(response, escape(org.county.name)) self.assertContains(response, escape(org.name)) self.assertContains(response, linkify(org.long_confirmation_message))
def test_applicant_with_submission(self): submission = factories.FormSubmissionWithOrgsFactory.create( organizations=[self.ebclc, self.cc_pubdef]) self.set_session(applicant_id=submission.applicant_id) response = self.client.get(reverse(self.view_name)) for org in submission.organizations.all(): self.assertContains(response, escape(org.county.name)) self.assertContains(response, escape(org.name)) self.assertContains( response, linkify(org.long_confirmation_message))