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/")
예제 #4
0
 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_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/")
예제 #6
0
 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/')
예제 #7
0
 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/')
예제 #8
0
 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/')
예제 #9
0
파일: test_url.py 프로젝트: 3rdDegree/w3af
 def test_base_url_port_not_default(self):
     u = URL('http://www.w3af.com:8080/')
     self.assertEqual(u.base_url().url_string,
                      u'http://www.w3af.com:8080/')
예제 #10
0
파일: test_url.py 프로젝트: 3rdDegree/w3af
 def test_base_url_port_ssl(self):
     u = URL('https://www.w3af.com:443/')
     self.assertEqual(u.base_url().url_string,
                      u'https://www.w3af.com/')