MCPcopy
hub / github.com/django/django / test_attributes

Method test_attributes

tests/test_utils/tests.py:788–799  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

786 )
787
788 def test_attributes(self):
789 self.assertHTMLEqual(
790 '<input type="text" id="id_name" />', '<input id="id_name" type="text" />'
791 )
792 self.assertHTMLEqual(
793 """<input type='text' id="id_name" />""",
794 '<input id="id_name" type="text" />',
795 )
796 self.assertHTMLNotEqual(
797 '<input type="text" id="id_name" />',
798 '<input type="password" id="id_name" />',
799 )
800
801 def test_class_attribute(self):
802 pairs = [

Callers

nothing calls this directly

Calls 2

assertHTMLEqualMethod · 0.80
assertHTMLNotEqualMethod · 0.80

Tested by

no test coverage detected