1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and converted Django tests to use them where appropriate. Thanks Greg Müllegger.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Carl Meyer
2012-01-31 20:36:11 +00:00
parent c82f1dcf95
commit 844a24bbb9
61 changed files with 1345 additions and 639 deletions

View File

@@ -56,7 +56,7 @@ class RULocalFlavorTests(SimpleTestCase):
<option value="Privolzhsky Federal County">Privolzhsky Federal County</option>
<option value="North-Caucasian Federal County">North-Caucasian Federal County</option>
</select>'''
self.assertEqual(f.render('county', None), out)
self.assertHTMLEqual(f.render('county', None), out)
def test_RURegionSelect(self):
f = RURegionSelect()
@@ -145,4 +145,4 @@ class RULocalFlavorTests(SimpleTestCase):
<option value="87">Chukotskiy avtonomnyy okrug</option>
<option value="89">Yamalo-Neneckiy avtonomnyy okrug</option>
</select>'''
self.assertEqual(f.render('region', '67'), out)
self.assertHTMLEqual(f.render('region', '67'), out)