summaryrefslogtreecommitdiff
path: root/tests/multiple_database
diff options
context:
space:
mode:
authorwrwrwr <git@wr.waw.pl>2014-11-29 18:42:56 +0100
committerTim Graham <timograham@gmail.com>2014-12-01 11:36:54 -0500
commitfce2890e92497bec8306925f746b81ec0aeeebff (patch)
treed266c94d158cede4d9abac1ed998fdd687be11b6 /tests/multiple_database
parent9136ceb6fb8225625631671147ff70c1fcfbbcdc (diff)
downloaddjango-fce2890e92497bec8306925f746b81ec0aeeebff.tar.gz
Removed a no-op statement in tests/multiple_database/tests.py.
Diffstat (limited to 'tests/multiple_database')
-rw-r--r--tests/multiple_database/tests.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py
index 90e418ba15..03e471ad6a 100644
--- a/tests/multiple_database/tests.py
+++ b/tests/multiple_database/tests.py
@@ -1806,7 +1806,6 @@ class RouterUsed(Exception):
class RouteForWriteTestCase(TestCase):
multi_db = True
- RAISE_MSG = 'Db for write called'
class WriteCheckRouter(object):
def db_for_write(self, model, **hints):
@@ -1921,7 +1920,6 @@ class RouteForWriteTestCase(TestCase):
book = Book.objects.create(title="Pro Django",
published=datetime.date(2008, 12, 16))
book.authors.add(auth)
- self.assertRaisesMessage(AttributeError, self.RAISE_MSG, )
try:
with self.override_router():
book.authors.remove(auth)