Skip to content

Commit 18887cb

Browse files
schedutronniranjan94
authored andcommitted
Standardize tests
1 parent 124a21f commit 18887cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unittests/api/helpers/test_storage.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,24 @@ def test_arbitrary_url(self):
1111
"""Method to test a url with arbitrary port."""
1212

1313
request_url = 'https://localhost:5000'
14-
file_relative_path = '/some/path/image.png'
1514
expected_file_url = 'https://localhost:5000/some/path/image.png'
1615

1716
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')
1918
)
2019

2120
def test_http_url(self):
2221
"""Method to test a url with port 80."""
2322
request_url = 'http://localhost:80'
2423
expected_file_url = 'http://localhost/some/path/image.png'
2524
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')
2726
)
2827

2928
def test_https_url(self):
3029
"""Method to test a url with port 443."""
3130
request_url = 'https://localhost:443'
3231
expected_file_url = 'https://localhost/some/path/image.png'
3332
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')
3534
)

0 commit comments

Comments
 (0)