summaryrefslogtreecommitdiff
path: root/tests/multiple_database/tests.py
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@memset.com>2013-10-18 00:58:02 +0100
committerAlasdair Nicol <alasdair@memset.com>2013-10-18 01:46:24 +0100
commitbab9123daa5d05150951f74183906a76d2b0cf27 (patch)
tree4fc24535f85f84c69e64c6eac654294725d906df /tests/multiple_database/tests.py
parent65d1d65d52a87bba22845bcb7c3c921a8789ec19 (diff)
downloaddjango-bab9123daa5d05150951f74183906a76d2b0cf27.tar.gz
Fixed #21268 -- Fixed E303 pep8 warnings
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'