mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
parent
c0c78f1b70
commit
f7969b0920
83 changed files with 419 additions and 429 deletions
|
@ -449,11 +449,11 @@ class ModelFormsetTest(TestCase):
|
|||
|
||||
PostFormSet = modelformset_factory(Post, form=PostForm1)
|
||||
formset = PostFormSet()
|
||||
self.assertFalse("subtitle" in formset.forms[0].fields)
|
||||
self.assertNotIn("subtitle", formset.forms[0].fields)
|
||||
|
||||
PostFormSet = modelformset_factory(Post, form=PostForm2)
|
||||
formset = PostFormSet()
|
||||
self.assertFalse("subtitle" in formset.forms[0].fields)
|
||||
self.assertNotIn("subtitle", formset.forms[0].fields)
|
||||
|
||||
def test_custom_queryset_init(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue