Removed a no-op statement in tests/multiple_database/tests.py.

This commit is contained in:
wrwrwr 2014-11-29 18:42:56 +01:00 committed by Tim Graham
parent 9136ceb6fb
commit fce2890e92
1 changed files with 0 additions and 2 deletions

View File

@ -1806,7 +1806,6 @@ class RouterUsed(Exception):
class RouteForWriteTestCase(TestCase): class RouteForWriteTestCase(TestCase):
multi_db = True multi_db = True
RAISE_MSG = 'Db for write called'
class WriteCheckRouter(object): class WriteCheckRouter(object):
def db_for_write(self, model, **hints): def db_for_write(self, model, **hints):
@ -1921,7 +1920,6 @@ class RouteForWriteTestCase(TestCase):
book = Book.objects.create(title="Pro Django", book = Book.objects.create(title="Pro Django",
published=datetime.date(2008, 12, 16)) published=datetime.date(2008, 12, 16))
book.authors.add(auth) book.authors.add(auth)
self.assertRaisesMessage(AttributeError, self.RAISE_MSG, )
try: try:
with self.override_router(): with self.override_router():
book.authors.remove(auth) book.authors.remove(auth)