mirror of
https://github.com/django/django.git
synced 2025-11-25 13:13:28 +00:00
Fixed E128 flake8 warnings in tests/.
This commit is contained in:
parent
df8d8d4292
commit
92053acbb9
148 changed files with 2073 additions and 2248 deletions
|
|
@ -184,13 +184,17 @@ class RequestsTests(SimpleTestCase):
|
|||
|
||||
def test_httprequest_location(self):
|
||||
request = HttpRequest()
|
||||
self.assertEqual(request.build_absolute_uri(location="https://www.example.com/asdf"),
|
||||
'https://www.example.com/asdf')
|
||||
self.assertEqual(
|
||||
request.build_absolute_uri(location="https://www.example.com/asdf"),
|
||||
'https://www.example.com/asdf'
|
||||
)
|
||||
|
||||
request.get_host = lambda: 'www.example.com'
|
||||
request.path = ''
|
||||
self.assertEqual(request.build_absolute_uri(location="/path/with:colons"),
|
||||
'http://www.example.com/path/with:colons')
|
||||
self.assertEqual(
|
||||
request.build_absolute_uri(location="/path/with:colons"),
|
||||
'http://www.example.com/path/with:colons'
|
||||
)
|
||||
|
||||
def test_near_expiration(self):
|
||||
"Cookie will expire when an near expiration time is provided"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue