mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Changed assertQuerysetEqual()s that use default Model.__str__() to assertSequenceEqual().
This commit is contained in:
parent
eb9a3bd63a
commit
a19b373d89
3 changed files with 18 additions and 58 deletions
|
@ -581,7 +581,7 @@ class ManyToOneTests(TestCase):
|
|||
private_student = Student.objects.create(school=private_school)
|
||||
|
||||
# Only one school is available via all() due to the custom default manager.
|
||||
self.assertQuerysetEqual(School.objects.all(), ["<School: School object>"])
|
||||
self.assertSequenceEqual(School.objects.all(), [public_school])
|
||||
|
||||
self.assertEqual(public_student.school, public_school)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue