Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed test failures after commit 1a66f53. Refs #18340

  • Loading branch information...
commit 078ea51b1c7504e3f941bc1d96b0499ace29bdb0 1 parent 1a66f53
@claudep claudep authored
Showing with 25 additions and 25 deletions.
  1. +25 −25 django/contrib/formtools/tests/__init__.py
View
50 django/contrib/formtools/tests/__init__.py
@@ -266,10 +266,10 @@ def test_good_hash(self):
Form should advance if the hash is present and good, as calculated using
current method.
"""
- data = {"0-field": "test",
- "1-field": "test2",
- "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
- "wizard_step": "1"}
+ data = {"0-field": u"test",
+ "1-field": u"test2",
+ "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
+ "wizard_step": u"1"}
response = self.client.post('/wizard1/', data)
self.assertEqual(2, response.context['step0'])
@@ -291,18 +291,18 @@ def process_step(self, request, form, step):
reached[0] = True
wizard = WizardWithProcessStep([WizardPageOneForm])
- data = {"0-field": "test",
- "1-field": "test2",
- "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
- "wizard_step": "1"}
+ data = {"0-field": u"test",
+ "1-field": u"test2",
+ "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
+ "wizard_step": u"1"}
wizard(DummyRequest(POST=data))
self.assertTrue(reached[0])
- data = {"0-field": "test",
- "1-field": "test2",
- "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
- "hash_1": "d5b434e3934cc92fee4bd2964c4ebc06f81d362d",
- "wizard_step": "2"}
+ data = {"0-field": u"test",
+ "1-field": u"test2",
+ "hash_0": "cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
+ "hash_1": u"1e6f6315da42e62f33a30640ec7e007ad3fbf1a1",
+ "wizard_step": u"2"}
self.assertRaises(http.Http404, wizard, DummyRequest(POST=data))
def test_14498(self):
@@ -321,10 +321,10 @@ def process_step(self, request, form, step):
wizard = WizardWithProcessStep([WizardPageOneForm,
WizardPageTwoForm,
WizardPageThreeForm])
- data = {"0-field": "test",
- "1-field": "test2",
- "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
- "wizard_step": "1"}
+ data = {"0-field": u"test",
+ "1-field": u"test2",
+ "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
+ "wizard_step": u"1"}
wizard(DummyRequest(POST=data))
self.assertTrue(reached[0])
@@ -345,10 +345,10 @@ def done(self, request, form_list):
wizard = Wizard([WizardPageOneForm,
WizardPageTwoForm])
- data = {"0-field": "test",
- "1-field": "test2",
- "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
- "wizard_step": "1"}
+ data = {"0-field": u"test",
+ "1-field": u"test2",
+ "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
+ "wizard_step": u"1"}
wizard(DummyRequest(POST=data))
self.assertTrue(reached[0])
@@ -371,10 +371,10 @@ def process_step(self, request, form, step):
wizard = WizardWithProcessStep([WizardPageOneForm,
WizardPageTwoForm,
WizardPageThreeForm])
- data = {"0-field": "test",
- "1-field": "test2",
- "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
- "wizard_step": "1"}
+ data = {"0-field": u"test",
+ "1-field": u"test2",
+ "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
+ "wizard_step": u"1"}
wizard(DummyRequest(POST=data))
self.assertTrue(reached[0])
Please sign in to comment.
Something went wrong with that request. Please try again.