def test_fn_url2title_when_user(): url = "http://en.wikipedia.org/User:Taniki" assert url2title(url) == "User:Taniki"
def test_fn_url2title(): url = "http://en.wikipedia.org/wiki/Ant" assert url2title(url) == "Ant"