mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed E127 pep8 warnings.
This commit is contained in:
parent
d599b590eb
commit
6685713869
55 changed files with 362 additions and 338 deletions
|
@ -412,13 +412,11 @@ class ModelInheritanceTest(TestCase):
|
|||
# when more than one model has a concrete->abstract->concrete
|
||||
# inheritance hierarchy.
|
||||
self.assertEqual(
|
||||
len([field for field in BusStation._meta.local_fields
|
||||
if field.primary_key]),
|
||||
len([field for field in BusStation._meta.local_fields if field.primary_key]),
|
||||
1
|
||||
)
|
||||
self.assertEqual(
|
||||
len([field for field in TrainStation._meta.local_fields
|
||||
if field.primary_key]),
|
||||
len([field for field in TrainStation._meta.local_fields if field.primary_key]),
|
||||
1
|
||||
)
|
||||
self.assertIs(BusStation._meta.pk.model, BusStation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue