def test_url_join_with_slashes(): expect_url = 'https://aurl.com/path/morepath/lastpath' actual_url = flickr._url_join( 'https://aurl.com/', '/path/', '/morepath/', 'lastpath' ) assert expect_url == actual_url
def test_url_join_no_trailing_slashes(): expect_url = 'https://aurl.com/path/morepath/lastpath' actual_url = flickr._url_join( 'https://aurl.com', 'path', 'morepath', 'lastpath' ) assert expect_url == actual_url