Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed test failures after commit 1a66f53. Refs #18340

  • Loading branch information...
commit 078ea51b1c7504e3f941bc1d96b0499ace29bdb0 1 parent 1a66f53
Claude Paroz authored May 19, 2012

Showing 1 changed file with 25 additions and 25 deletions. Show diff stats Hide diff stats

  1. 50  django/contrib/formtools/tests/__init__.py
50  django/contrib/formtools/tests/__init__.py
@@ -266,10 +266,10 @@ def test_good_hash(self):
266 266
         Form should advance if the hash is present and good, as calculated using
267 267
         current method.
268 268
         """
269  
-        data = {"0-field": "test",
270  
-                "1-field": "test2",
271  
-                "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
272  
-                "wizard_step": "1"}
  269
+        data = {"0-field": u"test",
  270
+                "1-field": u"test2",
  271
+                "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
  272
+                "wizard_step": u"1"}
273 273
         response = self.client.post('/wizard1/', data)
274 274
         self.assertEqual(2, response.context['step0'])
275 275
 
@@ -291,18 +291,18 @@ def process_step(self, request, form, step):
291 291
                     reached[0] = True
292 292
 
293 293
         wizard = WizardWithProcessStep([WizardPageOneForm])
294  
-        data = {"0-field": "test",
295  
-                "1-field": "test2",
296  
-                "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
297  
-                "wizard_step": "1"}
  294
+        data = {"0-field": u"test",
  295
+                "1-field": u"test2",
  296
+                "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
  297
+                "wizard_step": u"1"}
298 298
         wizard(DummyRequest(POST=data))
299 299
         self.assertTrue(reached[0])
300 300
 
301  
-        data = {"0-field": "test",
302  
-                "1-field": "test2",
303  
-                "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
304  
-                "hash_1": "d5b434e3934cc92fee4bd2964c4ebc06f81d362d",
305  
-                "wizard_step": "2"}
  301
+        data = {"0-field": u"test",
  302
+                "1-field": u"test2",
  303
+                "hash_0": "cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
  304
+                "hash_1": u"1e6f6315da42e62f33a30640ec7e007ad3fbf1a1",
  305
+                "wizard_step": u"2"}
306 306
         self.assertRaises(http.Http404, wizard, DummyRequest(POST=data))
307 307
 
308 308
     def test_14498(self):
@@ -321,10 +321,10 @@ def process_step(self, request, form, step):
321 321
         wizard = WizardWithProcessStep([WizardPageOneForm,
322 322
                                         WizardPageTwoForm,
323 323
                                         WizardPageThreeForm])
324  
-        data = {"0-field": "test",
325  
-                "1-field": "test2",
326  
-                "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
327  
-                "wizard_step": "1"}
  324
+        data = {"0-field": u"test",
  325
+                "1-field": u"test2",
  326
+                "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
  327
+                "wizard_step": u"1"}
328 328
         wizard(DummyRequest(POST=data))
329 329
         self.assertTrue(reached[0])
330 330
 
@@ -345,10 +345,10 @@ def done(self, request, form_list):
345 345
         wizard = Wizard([WizardPageOneForm,
346 346
                          WizardPageTwoForm])
347 347
 
348  
-        data = {"0-field": "test",
349  
-                "1-field": "test2",
350  
-                "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
351  
-                "wizard_step": "1"}
  348
+        data = {"0-field": u"test",
  349
+                "1-field": u"test2",
  350
+                "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
  351
+                "wizard_step": u"1"}
352 352
         wizard(DummyRequest(POST=data))
353 353
         self.assertTrue(reached[0])
354 354
 
@@ -371,10 +371,10 @@ def process_step(self, request, form, step):
371 371
         wizard = WizardWithProcessStep([WizardPageOneForm,
372 372
                                         WizardPageTwoForm,
373 373
                                         WizardPageThreeForm])
374  
-        data = {"0-field": "test",
375  
-                "1-field": "test2",
376  
-                "hash_0": "7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c",
377  
-                "wizard_step": "1"}
  374
+        data = {"0-field": u"test",
  375
+                "1-field": u"test2",
  376
+                "hash_0": u"cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca",
  377
+                "wizard_step": u"1"}
378 378
         wizard(DummyRequest(POST=data))
379 379
         self.assertTrue(reached[0])
380 380
 

0 notes on commit 078ea51

Please sign in to comment.
Something went wrong with that request. Please try again.