summaryrefslogtreecommitdiff
path: root/tests/multiple_database/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiple_database/tests.py')
-rw-r--r--tests/multiple_database/tests.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py
index edc4b99f09..58307c8d32 100644
--- a/tests/multiple_database/tests.py
+++ b/tests/multiple_database/tests.py
@@ -66,7 +66,6 @@ class QueryTestCase(TestCase):
title="Dive into Python"
)
-
def test_other_creation(self):
"Objects created on another database don't leak onto the default database"
# Create a book on the second database
@@ -201,7 +200,6 @@ class QueryTestCase(TestCase):
self.assertEqual(list(Book.objects.using('other').filter(authors__name='John Smith').values_list('title', flat=True)),
[])
-
dive.authors.add(john)
self.assertEqual(list(Book.objects.using('other').filter(authors__name='Mark Pilgrim').values_list('title', flat=True)),
['Dive into Python'])
@@ -1027,7 +1025,6 @@ class RouterTestCase(TestCase):
self.assertFalse(router.allow_migrate('default', User))
self.assertTrue(router.allow_migrate('default', Book))
-
def test_database_routing(self):
marty = Person.objects.using('default').create(name="Marty Alchin")
pro = Book.objects.using('default').create(title="Pro Django",
@@ -1907,8 +1904,6 @@ class MigrateTestCase(TestCase):
self.assertEqual(cts.count(), 0)
-
-
class RouterUsed(Exception):
WRITE = 'write'