From accee3961ce742884672eba24cbf04138ef2bb1d Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Sat, 5 Feb 2011 20:06:49 +0000 Subject: [PATCH] Modified wrong expected ClearableFileInput rendering output in a couple of additional tests after fix introduced in [15426]. Refs #14984. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15432 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/admin_widgets/tests.py | 2 +- tests/regressiontests/forms/tests/widgets.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/regressiontests/admin_widgets/tests.py b/tests/regressiontests/admin_widgets/tests.py index 442fb1ef80..9e46cbd339 100644 --- a/tests/regressiontests/admin_widgets/tests.py +++ b/tests/regressiontests/admin_widgets/tests.py @@ -232,7 +232,7 @@ class AdminFileWidgetTest(DjangoTestCase): w = AdminFileWidget() self.assertEqual( conditional_escape(w.render('test', album.cover_art)), - '

Currently: albums\hybrid_theory.jpg
Change:

' % { 'STORAGE_URL': default_storage.url('') }, + '

Currently: albums\hybrid_theory.jpg
Change:

' % { 'STORAGE_URL': default_storage.url('') }, ) self.assertEqual( diff --git a/tests/regressiontests/forms/tests/widgets.py b/tests/regressiontests/forms/tests/widgets.py index 7eda26adb8..7d2b633778 100644 --- a/tests/regressiontests/forms/tests/widgets.py +++ b/tests/regressiontests/forms/tests/widgets.py @@ -1084,7 +1084,7 @@ class ClearableFileInputTests(TestCase): widget = ClearableFileInput() widget.is_required = False self.assertEqual(widget.render('myfile', FakeFieldFile()), - u'Currently: something
Change: ') + u'Currently: something
Change: ') def test_clear_input_renders_only_if_not_required(self): """ @@ -1095,7 +1095,7 @@ class ClearableFileInputTests(TestCase): widget = ClearableFileInput() widget.is_required = True self.assertEqual(widget.render('myfile', FakeFieldFile()), - u'Currently: something
Change: ') + u'Currently: something
Change: ') def test_clear_input_renders_only_if_initial(self): """