def test_base_url_port_ssl_not_default(self): u = URL('https://www.w3af.com:8443/') self.assertEqual(u.base_url().url_string, u'https://www.w3af.com:8443/')
def test_base_url_path_missing(self): u = URL('http://www.w3af.com') self.assertEqual(u.base_url().url_string, u'http://www.w3af.com/')
def test_base_url_port(self): u = URL('http://www.w3af.com:80/') self.assertEqual(u.base_url().url_string, u'http://www.w3af.com/')
def test_base_url_path_fragment(self): u = URL('http://www.w3af.com/foo/bar.txt?id=3#foobar') self.assertEqual(u.base_url().url_string, u'http://www.w3af.com/')