From 1bf95803f3fa39fca5e5b9cb84913c82595d8fd5 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 9 Oct 2013 09:06:23 +0800 Subject: [PATCH] [1.6.x] Fixed #21243 -- Corrected exception message in multiple database tests. Thanks to vajrasky for the report and patch. Backport of a971d19 from trunk. --- tests/multiple_database/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py index a0d937ce81..889841a2a5 100644 --- a/tests/multiple_database/tests.py +++ b/tests/multiple_database/tests.py @@ -49,7 +49,7 @@ class QueryTestCase(TestCase): Book.objects.get(title="Pro Django") Book.objects.using('default').get(title="Pro Django") except Book.DoesNotExist: - self.fail('"Dive Into Python" should exist on default database') + self.fail('"Pro Django" should exist on default database') self.assertRaises(Book.DoesNotExist, Book.objects.using('other').get, @@ -84,7 +84,7 @@ class QueryTestCase(TestCase): try: Book.objects.using('other').get(title="Pro Django") except Book.DoesNotExist: - self.fail('"Dive Into Python" should exist on other database') + self.fail('"Pro Django" should exist on other database') self.assertRaises(Book.DoesNotExist, Book.objects.get,