def test_sitemap_get_base_path(): assert sitemap_get_base_path('http://some.site') == '/' assert sitemap_get_base_path('http://some.site/') == '/' assert sitemap_get_base_path( 'http://some.site/some/sub-path') == '/some/sub-path/' assert sitemap_get_base_path( 'http://some.site/some/sub-path/') == '/some/sub-path/'
def test_sitemap_get_base_path(): assert sitemap_get_base_path('http://some.site') == '/' assert sitemap_get_base_path('http://some.site/') == '/' assert sitemap_get_base_path( 'http://some.site/some/sub-path') == '/some/sub-path/' assert sitemap_get_base_path( 'http://some.site/some/sub-path/') == '/some/sub-path/'
def test_sitemap_get_base_path(base, expected_path): assert expected_path == sitemap_get_base_path(base)