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:
@@ -156,7 +156,7 @@ class ISLocalFlavorTests(SimpleTestCase):
|
||||
<option value="900">900 Vestmannaeyjar</option>
|
||||
<option value="902">902 Vestmannaeyjar</option>
|
||||
</select>'''
|
||||
self.assertEqual(f.render('foo', 'bar'), out)
|
||||
self.assertHTMLEqual(f.render('foo', 'bar'), out)
|
||||
|
||||
def test_ISIdNumberField(self):
|
||||
error_atleast = [u'Ensure this value has at least 10 characters (it has 9).']
|
||||
|
||||
Reference in New Issue
Block a user