1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

Fixed test failures after commit 1a66f53. Refs #18340

This commit is contained in:
Claude Paroz 2012-05-19 12:32:59 +02:00
parent 1a66f53f94
commit 078ea51b1c

View File

@ -266,10 +266,10 @@ class WizardTests(TestCase):
Form should advance if the hash is present and good, as calculated using Form should advance if the hash is present and good, as calculated using
current method. current method.
""" """
data = {"0-field": "test", data = {"0-field": u"test",
"1-field": "test2", "1-field": u"test2",
"hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c", "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
"wizard_step": "1"} "wizard_step": u"1"}
response = self.client.post('/wizard1/', data) response = self.client.post('/wizard1/', data)
self.assertEqual(2, response.context['step0']) self.assertEqual(2, response.context['step0'])
@ -291,18 +291,18 @@ class WizardTests(TestCase):
reached[0] = True reached[0] = True
wizard = WizardWithProcessStep([WizardPageOneForm]) wizard = WizardWithProcessStep([WizardPageOneForm])
data = {"0-field": "test", data = {"0-field": u"test",
"1-field": "test2", "1-field": u"test2",
"hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c", "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
"wizard_step": "1"} "wizard_step": u"1"}
wizard(DummyRequest(POST=data)) wizard(DummyRequest(POST=data))
self.assertTrue(reached[0]) self.assertTrue(reached[0])
data = {"0-field": "test", data = {"0-field": u"test",
"1-field": "test2", "1-field": u"test2",
"hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c", "hash_0": "cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
"hash_1": "d5b434e3934cc92fee4bd2964c4ebc06f81d362d", "hash_1": u"1e6f6315da42e62f33a30640ec7e007ad3fbf1a1",
"wizard_step": "2"} "wizard_step": u"2"}
self.assertRaises(http.Http404, wizard, DummyRequest(POST=data)) self.assertRaises(http.Http404, wizard, DummyRequest(POST=data))
def test_14498(self): def test_14498(self):
@ -321,10 +321,10 @@ class WizardTests(TestCase):
wizard = WizardWithProcessStep([WizardPageOneForm, wizard = WizardWithProcessStep([WizardPageOneForm,
WizardPageTwoForm, WizardPageTwoForm,
WizardPageThreeForm]) WizardPageThreeForm])
data = {"0-field": "test", data = {"0-field": u"test",
"1-field": "test2", "1-field": u"test2",
"hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c", "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
"wizard_step": "1"} "wizard_step": u"1"}
wizard(DummyRequest(POST=data)) wizard(DummyRequest(POST=data))
self.assertTrue(reached[0]) self.assertTrue(reached[0])
@ -345,10 +345,10 @@ class WizardTests(TestCase):
wizard = Wizard([WizardPageOneForm, wizard = Wizard([WizardPageOneForm,
WizardPageTwoForm]) WizardPageTwoForm])
data = {"0-field": "test", data = {"0-field": u"test",
"1-field": "test2", "1-field": u"test2",
"hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c", "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
"wizard_step": "1"} "wizard_step": u"1"}
wizard(DummyRequest(POST=data)) wizard(DummyRequest(POST=data))
self.assertTrue(reached[0]) self.assertTrue(reached[0])
@ -371,10 +371,10 @@ class WizardTests(TestCase):
wizard = WizardWithProcessStep([WizardPageOneForm, wizard = WizardWithProcessStep([WizardPageOneForm,
WizardPageTwoForm, WizardPageTwoForm,
WizardPageThreeForm]) WizardPageThreeForm])
data = {"0-field": "test", data = {"0-field": u"test",
"1-field": "test2", "1-field": u"test2",
"hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c", "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
"wizard_step": "1"} "wizard_step": u"1"}
wizard(DummyRequest(POST=data)) wizard(DummyRequest(POST=data))
self.assertTrue(reached[0]) self.assertTrue(reached[0])