

def test_input_id_is_escaped(self):
    form = SortedForm(prefix='hacking"><a href="TRAP">')
    rendered = str_(form['values'])
    self.assertTrue((' id="id_hacking&quot;&gt;&lt;a href=&quot;TRAP&quot;&gt;-values_0"' in rendered))

dataset/ETHPy150Open gregmuellegger/django-sortedm2m/sortedm2m_tests/test_forms.py TestSortedFormField.test_input_id_is_escaped/original