'Autogenerated many-to-many inlines are displayed correctly (#13407)'

def test_many_to_many_inlines(self):

    response = self.client.get('/test_admin/admin/admin_inlines/author/add/')
    self.assertContains(response, '<h2>Author-book    relationships</h2>')
    self.assertContains(response, 'Add    another    Author-Book    Relationship')
    self.assertContains(response, 'id="id_Author_books-TOTAL_FORMS"')
