From a971d19bab9bfc33d301669b319b4766bf6d94f6 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 9 Oct 2013 09:06:23 +0800 Subject: [PATCH] Fixed #21243 -- Corrected exception message in multiple database tests. Thanks to vajrasky for the report and patch. --- 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 665de2b604..0550aa2a34 100644 --- a/tests/multiple_database/tests.py +++ b/tests/multiple_database/tests.py @@ -48,7 +48,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, @@ -83,7 +83,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,