mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed E128 flake8 warnings in tests/.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user