File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
tests/unittests/api/helpers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,24 @@ def test_arbitrary_url(self):
11
11
"""Method to test a url with arbitrary port."""
12
12
13
13
request_url = 'https://localhost:5000'
14
- file_relative_path = '/some/path/image.png'
15
14
expected_file_url = 'https://localhost:5000/some/path/image.png'
16
15
17
16
self .assertEqual (
18
- create_url (request_url , file_relative_path ), expected_file_url
17
+ expected_file_url , create_url (request_url , '/some/path/image.png' )
19
18
)
20
19
21
20
def test_http_url (self ):
22
21
"""Method to test a url with port 80."""
23
22
request_url = 'http://localhost:80'
24
23
expected_file_url = 'http://localhost/some/path/image.png'
25
24
self .assertEqual (
26
- create_url (request_url , '/some/path/image.png' ), expected_file_url
25
+ expected_file_url , create_url (request_url , '/some/path/image.png' )
27
26
)
28
27
29
28
def test_https_url (self ):
30
29
"""Method to test a url with port 443."""
31
30
request_url = 'https://localhost:443'
32
31
expected_file_url = 'https://localhost/some/path/image.png'
33
32
self .assertEqual (
34
- create_url (request_url , '/some/path/image.png' ), expected_file_url
33
+ expected_file_url , create_url (request_url , '/some/path/image.png' )
35
34
)
You can’t perform that action at this time.
0 commit comments