1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Made multiline assertRaises* conform to flake8's E128 rule.

This commit is contained in:
Hasan
2016-02-04 14:40:50 +03:30
committed by Tim Graham
parent 6eb3ce11e4
commit 04de436932
4 changed files with 25 additions and 33 deletions

View File

@@ -111,8 +111,9 @@ class EarliestOrLatestTests(TestCase):
Article.objects.model._meta.get_latest_by = None
with self.assertRaisesMessage(
AssertionError,
"earliest() and latest() require either a field_name parameter or "
"'get_latest_by' in the model"):
"earliest() and latest() require either a field_name parameter or "
"'get_latest_by' in the model"
):
Article.objects.latest()
def test_latest_manual(self):