'Ensure that multiple inlines with related_name=\'+\' have correct form
prefixes. Bug #16838.'

def test_non_related_name_inline(self):

    response = self.client.get(u'/admin/admin_inlines/capofamiglia/add/')
    self.assertContains(response, u'<input    type="hidden"    name="-1-0-id"    id="id_-1-0-id"    />', html=True)
    self.assertContains(response, u'<input    type="hidden"    name="-1-0-capo_famiglia"    id="id_-1-0-capo_famiglia"    />', html=True)
    self.assertContains(response, u'<input    id="id_-1-0-name"    type="text"    class="vTextField"    name="-1-0-name"    maxlength="100"    />', html=True)
    self.assertContains(response, u'<input    type="hidden"    name="-2-0-id"    id="id_-2-0-id"    />', html=True)
    self.assertContains(response, u'<input    type="hidden"    name="-2-0-capo_famiglia"    id="id_-2-0-capo_famiglia"    />', html=True)
    self.assertContains(response, u'<input    id="id_-2-0-name"    type="text"    class="vTextField"    name="-2-0-name"    maxlength="100"    />', html=True)
