summaryrefslogtreecommitdiff
path: root/tests/fixtures_regress
diff options
context:
space:
mode:
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)>",
+ ]
)