@@ -353,15 +353,12 @@ def test_history_form_view_without_getting_history(self):
353353 'original' : poll ,
354354 'change_history' : False ,
355355
356- 'title' : 'Revert {}' . format ( force_text (poll ) ),
356+ 'title' : 'Revert %s' % force_text (poll ),
357357 'adminform' : ANY ,
358358 'object_id' : poll .id ,
359359 'is_popup' : False ,
360360 'media' : ANY ,
361- 'errors' : [
362- '<ul class="errorlist"><li>This field is required.</li></ul>' ,
363- '<ul class="errorlist"><li>This field is required.</li></ul>'
364- ],
361+ 'errors' : ANY ,
365362 'app_label' : 'tests' ,
366363 'original_opts' : ANY ,
367364 'changelist_url' : '/admin/tests/poll/' ,
@@ -412,15 +409,12 @@ def test_history_form_view_getting_history(self):
412409 'original' : history ,
413410 'change_history' : True ,
414411
415- 'title' : 'Revert {}' . format ( force_text (history ) ),
412+ 'title' : 'Revert %s' % force_text (history ),
416413 'adminform' : ANY ,
417414 'object_id' : poll .id ,
418415 'is_popup' : False ,
419416 'media' : ANY ,
420- 'errors' : [
421- '<ul class="errorlist"><li>This field is required.</li></ul>' ,
422- '<ul class="errorlist"><li>This field is required.</li></ul>'
423- ],
417+ 'errors' : ANY ,
424418 'app_label' : 'tests' ,
425419 'original_opts' : ANY ,
426420 'changelist_url' : '/admin/tests/poll/' ,
@@ -471,15 +465,12 @@ def test_history_form_view_getting_history_with_setting_off(self):
471465 'original' : poll ,
472466 'change_history' : False ,
473467
474- 'title' : 'Revert {}' . format ( force_text (poll ) ),
468+ 'title' : 'Revert %s' % force_text (poll ),
475469 'adminform' : ANY ,
476470 'object_id' : poll .id ,
477471 'is_popup' : False ,
478472 'media' : ANY ,
479- 'errors' : [
480- '<ul class="errorlist"><li>This field is required.</li></ul>' ,
481- '<ul class="errorlist"><li>This field is required.</li></ul>'
482- ],
473+ 'errors' : ANY ,
483474 'app_label' : 'tests' ,
484475 'original_opts' : ANY ,
485476 'changelist_url' : '/admin/tests/poll/' ,
0 commit comments