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:
@@ -59,7 +59,7 @@ class BELocalFlavorTests(SimpleTestCase):
|
||||
<option value="VLG" selected="selected">Flemish Region</option>
|
||||
<option value="WAL">Wallonia</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('regions', 'VLG'), out)
|
||||
self.assertHTMLEqual(f.render('regions', 'VLG'), out)
|
||||
|
||||
def test_BEProvinceSelect(self):
|
||||
f = BEProvinceSelect()
|
||||
@@ -76,4 +76,4 @@ class BELocalFlavorTests(SimpleTestCase):
|
||||
<option value="WBR">Walloon Brabant</option>
|
||||
<option value="VWV">West Flanders</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('provinces', 'WLG'), out)
|
||||
self.assertHTMLEqual(f.render('provinces', 'WLG'), out)
|
||||
|
||||
Reference in New Issue
Block a user