def test_form_preview(self):
        """
        Test contrib.formtools.preview form preview rendering.

        Use the client library to POST to the form to see if a preview
        is returned.  If we do get a form back check that the hidden
        value is correctly managing the state of the form.

        """
        # Pass strings for form submittal and add stage variable to
        # show we previously saw first stage of the form.
        self.test_data.update({'stage': 1})
        response = self.client.post('/test1/', self.test_data)
        # Check to confirm stage is set to 2 in output form.
        stage = 2 % self.input
        self.assertContains(response, stage, 1)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/formtools/tests.py/PreviewTests.test_form_preview/swapped operands of `%`