mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed E225 pep8 warnings.
This commit is contained in:
parent
51d2e1fb23
commit
ae48d77ef8
43 changed files with 102 additions and 91 deletions
|
@ -39,7 +39,7 @@ class QueryTestCase(TestCase):
|
|||
|
||||
# Create a book on the default database using a save
|
||||
dive = Book()
|
||||
dive.title="Dive into Python"
|
||||
dive.title = "Dive into Python"
|
||||
dive.published = datetime.date(2009, 5, 4)
|
||||
dive.save()
|
||||
|
||||
|
@ -74,7 +74,7 @@ class QueryTestCase(TestCase):
|
|||
|
||||
# Create a book on the default database using a save
|
||||
dive = Book()
|
||||
dive.title="Dive into Python"
|
||||
dive.title = "Dive into Python"
|
||||
dive.published = datetime.date(2009, 5, 4)
|
||||
dive.save(using='other')
|
||||
|
||||
|
@ -1794,7 +1794,7 @@ class RouterAttributeErrorTestCase(TestCase):
|
|||
def test_attribute_error_save(self):
|
||||
"Check that the AttributeError from AttributeErrorRouter bubbles up"
|
||||
dive = Book()
|
||||
dive.title="Dive into Python"
|
||||
dive.title = "Dive into Python"
|
||||
dive.published = datetime.date(2009, 5, 4)
|
||||
self.assertRaises(AttributeError, dive.save)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue