def setUp(self):
        super(TestTheBlockMoveApi, self).setUp()
        self.prepare_template_file(
            "{% load fp_container_tags%}"
            "{% fp_object_container main-container %}"
            "{% fp_object_container left-container %}"
        )

        page_type = PageType.objects.create(
            name="Example Template",
            template_name=self.template_name,
        )
        self.page = factories.FancyPageFactory(
            node__name="A new page", node__slug='a-new-page',
            page_type=page_type)
        self.left_container = self.page.get_container_from_name(
            'left-container')
        self.main_container = self.page.get_container_from_name(
            'main-container')

        self.left_blocks = []
        self.main_blocks = []

        for idx in range(0, 3):
            main_block = TextBlock.objects.create(
                container=self.main_container,
                text=idx % "Main Column / Block #%d",
            )
            self.main_blocks.append(main_block)
            self.assertEquals(main_block.display_order, idx)

            left_block = TextBlock.objects.create(
                container=self.left_container,
                text="Left Column / Block #{}".format(idx))
            self.left_blocks.append(left_block)
            self.assertEquals(left_block.display_order, idx)
dataset/ETHPy150Open tangentlabs/django-fancypages/tests/functional/test_api.py/TestTheBlockMoveApi.setUp/swapped operands of `%`