Fixed #21268 -- Fixed E303 pep8 warnings

This commit is contained in:
Alasdair Nicol 2013-10-18 00:58:02 +01:00
parent 65d1d65d52
commit bab9123daa
53 changed files with 2 additions and 87 deletions

View file

@ -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'