summaryrefslogtreecommitdiff
path: root/tests/fixtures_regress
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-05 19:07:34 -0400
committerTim Graham <timograham@gmail.com>2015-10-06 12:38:34 -0400
commite0837f2cb12de5e95e621d19b186b0da43bcdee2 (patch)
treeea6ae0b150304ed18d93fb8c3ee3b7defbda0e26 /tests/fixtures_regress
parent3543fec3b739864c52de0a116dde3b0e5e885799 (diff)
Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.
Diffstat (limited to 'tests/fixtures_regress')
-rw-r--r--tests/fixtures_regress/tests.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py
index 02a841f5ef..5edd1c722f 100644
--- a/tests/fixtures_regress/tests.py
+++ b/tests/fixtures_regress/tests.py
@@ -800,11 +800,12 @@ class NaturalKeyFixtureTests(TestCase):
verbosity=0,
)
books = Book.objects.all()
- self.assertEqual(
- books.__repr__(),
- "[<Book: Cryptonomicon by Neal Stephenson (available at Amazon, Borders)>, "
- "<Book: Ender's Game by Orson Scott Card (available at Collins Bookstore)>, "
- "<Book: Permutation City by Greg Egan (available at Angus and Robertson)>]"
+ self.assertQuerysetEqual(
+ books, [
+ "<Book: Cryptonomicon by Neal Stephenson (available at Amazon, Borders)>",
+ "<Book: Ender's Game by Orson Scott Card (available at Collins Bookstore)>",
+ "<Book: Permutation City by Greg Egan (available at Angus and Robertson)>",
+ ]
)