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:
@@ -26,7 +26,7 @@ class ESLocalFlavorTests(SimpleTestCase):
|
||||
<option value="NA">Foral Community of Navarre</option>
|
||||
<option value="VC">Valencian Community</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('regions', 'CT'), out)
|
||||
self.assertHTMLEqual(f.render('regions', 'CT'), out)
|
||||
|
||||
def test_ESProvinceSelect(self):
|
||||
f = ESProvinceSelect()
|
||||
@@ -84,7 +84,7 @@ class ESLocalFlavorTests(SimpleTestCase):
|
||||
<option value="51">Ceuta</option>
|
||||
<option value="52">Melilla</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('provinces', '08'), out)
|
||||
self.assertHTMLEqual(f.render('provinces', '08'), out)
|
||||
|
||||
def test_ESPostalCodeField(self):
|
||||
error_invalid = [u'Enter a valid postal code in the range and format 01XXX - 52XXX.']
|
||||
|
||||
Reference in New Issue
Block a user