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:
@@ -56,7 +56,7 @@ class IDLocalFlavorTests(SimpleTestCase):
|
||||
<option value="SMS">Sumatera Selatan</option>
|
||||
<option value="SMU">Sumatera Utara</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('provinces', 'LPG'), out)
|
||||
self.assertHTMLEqual(f.render('provinces', 'LPG'), out)
|
||||
|
||||
def test_IDLicensePlatePrefixSelect(self):
|
||||
f = IDLicensePlatePrefixSelect()
|
||||
@@ -118,7 +118,7 @@ class IDLocalFlavorTests(SimpleTestCase):
|
||||
<option value="W">Sidoarjo</option>
|
||||
<option value="Z">Garut</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('codes', 'BE'), out)
|
||||
self.assertHTMLEqual(f.render('codes', 'BE'), out)
|
||||
|
||||
def test_IDPhoneNumberField(self):
|
||||
error_invalid = [u'Enter a valid phone number']
|
||||
|
||||
Reference in New Issue
Block a user