Exemplo n.º 1
0
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
Exemplo n.º 2
0
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