Commit 1bf95803 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

[1.6.x] Fixed #21243 -- Corrected exception message in multiple database tests.

Thanks to vajrasky for the report and patch.

Backport of a971d19b from trunk.
parent af46932b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,