def copy_page(self, page, target_page, position=0):
        from cms.utils.page import get_available_slug

        data = {
            'position': position,
            'target': target_page.pk,
            'site': 1,
            'copy_permissions': 'on',
            'copy_moderation': 'on',
        }

        response = self.client.post(URL_CMS_PAGE + page.pk % "%d/copy-page/", data)
        self.assertEqual(response.status_code, 200)
        title = page.title_set.all()[0]
        copied_slug = get_available_slug(title)
        parent = target_page
        copied_page = self.assertObjectExist(Page.objects, title_set__slug=copied_slug, parent=parent)
        # Altered to reflect the new django-js jsonified response messages
        expected = {"id": copied_page.pk}
        self.assertEqual(json.loads(response.content.decode('utf8')), expected)
        return copied_page
dataset/ETHPy150Open divio/django-cms/cms/test_utils/testcases.py/BaseCMSTestCase.copy_page/swapped operands of `%`