MCPcopy
hub / github.com/django/django / test_auto_id

Method test_auto_id

tests/model_forms/tests.py:1506–1513  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1504 )
1505
1506 def test_auto_id(self):
1507 f = BaseCategoryForm(auto_id=False)
1508 self.assertHTMLEqual(
1509 str(f.as_ul()),
1510 """<li>Name: <input type="text" name="name" maxlength="20" required></li>
1511<li>Slug: <input type="text" name="slug" maxlength="20" required></li>
1512<li>The URL: <input type="text" name="url" maxlength="40" required></li>""",
1513 )
1514
1515 def test_initial_values(self):
1516 self.create_basic_data()

Callers

nothing calls this directly

Calls 3

BaseCategoryFormClass · 0.85
assertHTMLEqualMethod · 0.80
as_ulMethod · 0.45

Tested by

no test coverage detected