def testPassingAnAbsolute(self):
     """Test that absolute URLs are not handled specially."""
     ns_url = "http://www.example.com/foo/namespace.txt"
     absolute_url = "http://www.example.com/bar.txt"
     x = lncore.basic_relative_url_handling_behavior(absolute_url,
                                                     ns_url)
     assert x == absolute_url
 def testBasic(self):
     """Test that basic relative URL handling behavior works."""
     ns_url = "http://www.example.com/foo/namespace.txt"
     relative_url = "bar.txt"
     final_url = "http://www.example.com/foo/bar.txt"
     x = lncore.basic_relative_url_handling_behavior(relative_url,
                                                     ns_url)
     assert x == final_url