def test_get_available_slug_recursion(self):
        for x in range(0, 12):
            page1 = create_page('test copy', 'nav_playground.html', 'en',
                                published=True)
        new_slug = get_available_slug(page1.get_title_obj('en'), 'test-copy')
        self.assertTrue(new_slug, 'test-copy-11')
Checks cms.utils.page.get_available_slug for infinite recursion
dataset/ETHPy150Open divio/django-cms/cms/tests/test_page.py/PagesTestCase.test_get_available_slug_recursion