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:
@@ -180,7 +180,7 @@ class MKLocalFlavorTests(SimpleTestCase):
|
||||
<option value="ST">\xc5\xa0tip</option>
|
||||
<option value="SO">\xc5\xa0uto Orizari</option>
|
||||
</select>"""
|
||||
self.assertEqual(str(self.form['municipality']), municipality_select_html)
|
||||
self.assertHTMLEqual(str(self.form['municipality']), municipality_select_html)
|
||||
|
||||
def test_MKIdentityCardNumberField(self):
|
||||
error_invalid = [u'Identity card numbers must contain either 4 to 7 '
|
||||
@@ -284,7 +284,7 @@ class MKLocalFlavorTests(SimpleTestCase):
|
||||
<option value="ST">\u0160tip</option>
|
||||
<option value="SO">\u0160uto Orizari</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('municipality', 'DL' ), out)
|
||||
self.assertHTMLEqual(f.render('municipality', 'DL' ), out)
|
||||
|
||||
def test_UMCNField(self):
|
||||
error_invalid = [u'This field should contain exactly 13 digits.']
|
||||
|
||||
Reference in New Issue
Block a user