'Check if the email opt-in checkbox appears in the response content.'

def _email_opt_in_checkbox(self, response, org_name_string=None):

    checkbox_html = '<input    id="email-opt-in"    type="checkbox"    name="opt-in"    class="email-opt-in"    value="true"    checked>'
    if org_name_string:
        self.assertContains(response, checkbox_html, html=True)
        self.assertContains(response, org_name_string)
    else:
        self.assertNotContains(response, checkbox_html, html=True)
