예제 #1
0
 def test_main_is_valid_url_javascript(self):
     url_test2 = 'javascript:void(false);'
     parser = Wrecon.is_valid_url(self, url_test2)
     self.assertEqual(parser, False)
예제 #2
0
 def test_main_is_valid_url_none(self):
     url_test2 = None
     parser = Wrecon.is_valid_url(self, url_test2)
     self.assertEqual(parser, False)
예제 #3
0
 def test_main_is_valid_url_false_number(self):
     url_test2 = 'http://localh1ost/'
     parser = Wrecon.is_valid_url(self, url_test2)
     self.assertEqual(parser, False)
예제 #4
0
 def test_main_is_valid_url_false_http(self):
     url_test2 = 'httppppp://localhost:8178/'
     parser = Wrecon.is_valid_url(self, url_test2)
     self.assertEqual(parser, False)
예제 #5
0
 def test_main_double_html_false(self):
     url_test = 'https://www.dodododododododorning.comhttps://www.dodododododododorning.com/page-sitemap.xml'
     parser = Wrecon.is_valid_url(self, url_test)
     self.assertEqual(parser, False)
예제 #6
0
 def test_main_is_valid_url_true(self):
     url_test = 'http://localhost:8178/'
     parser = Wrecon.is_valid_url(self, url_test)
     self.assertEqual(parser, True)
예제 #7
0
 def test_main_html_interno(self):
     url_test = 'http://sqoui0098xpt/reports/mobile'
     parser = Wrecon.is_valid_url(self, url_test)
     self.assertEqual(parser, True)