def test_extend_url_example(self): url = "http://example.com/" segments = ["test", "path"] expected = "http://example.com/test/path" self.assertEqual(extend_url(url, segments), expected)
def url(self): return extend_url(url_root(current_app), self.segments())