mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Cosmetic edits to tests/managers_regress/tests.py
This commit is contained in:
parent
af69c9113c
commit
99d9d4e695
@ -46,21 +46,14 @@ class ManagersRegressionTests(TestCase):
|
||||
"<Child4: d1>",
|
||||
"<Child4: d2>",
|
||||
"<Child4: f1>",
|
||||
"<Child4: f2>"
|
||||
]
|
||||
)
|
||||
self.assertQuerysetEqual(Child4.manager1.all(), [
|
||||
"<Child4: d1>",
|
||||
"<Child4: f1>"
|
||||
],
|
||||
ordered=False
|
||||
)
|
||||
"<Child4: f2>",
|
||||
])
|
||||
self.assertQuerysetEqual(Child4.manager1.all(), ["<Child4: d1>", "<Child4: f1>"], ordered=False)
|
||||
self.assertQuerysetEqual(Child5._default_manager.all(), ["<Child5: fred>"])
|
||||
self.assertQuerysetEqual(Child6._default_manager.all(), ["<Child6: f1>"])
|
||||
self.assertQuerysetEqual(Child7._default_manager.order_by('name'), [
|
||||
"<Child7: barney>",
|
||||
"<Child7: fred>"
|
||||
]
|
||||
self.assertQuerysetEqual(
|
||||
Child7._default_manager.order_by('name'),
|
||||
["<Child7: barney>", "<Child7: fred>"]
|
||||
)
|
||||
|
||||
def test_abstract_manager(self):
|
||||
|
Loading…
Reference in New Issue
Block a user