diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-17 17:58:14 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-17 17:58:14 -0700 |
| commit | 65750b83523870851008e804364121f8c458fc2d (patch) | |
| tree | 4fc24535f85f84c69e64c6eac654294725d906df /tests/multiple_database | |
| parent | 65d1d65d52a87bba22845bcb7c3c921a8789ec19 (diff) | |
| parent | bab9123daa5d05150951f74183906a76d2b0cf27 (diff) | |
Merge pull request #1768 from alasdairnicol/ticket_21268
Fixed #21268 -- Fixed E303 pep8 warnings
Diffstat (limited to 'tests/multiple_database')
| -rw-r--r-- | tests/multiple_database/tests.py | 5 |
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' |
