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 PYLocalFlavorTests(SimpleTestCase):
|
||||
<option value="PH">Pdte. Hayes</option>
|
||||
<option value="SP">San Pedro</option>
|
||||
</select>'''
|
||||
self.assertEqual(py.render('department', 'M'), out)
|
||||
self.assertHTMLEqual(py.render('department', 'M'), out)
|
||||
|
||||
def test_PyNumberedDepartmentSelect(self):
|
||||
py = PyNumberedDepartmentSelect()
|
||||
@@ -50,4 +50,4 @@ class PYLocalFlavorTests(SimpleTestCase):
|
||||
<option value="BQ">XVII Boquer\xf3n</option>
|
||||
<option value="AS">XVIII Asunci\xf3n</option>
|
||||
</select>'''
|
||||
self.assertEqual(py.render('department', 'AM'), out)
|
||||
self.assertHTMLEqual(py.render('department', 'AM'), out)
|
||||
|
||||
Reference in New Issue
Block a user