Esempio n. 1
0
 def test_get_forms_blacklisted(self):
     html = u"<html><form action='/forbidden'></form></html>"
     blacklist = ["forbidden"]
     page = FakePage(html)
     self.assertEqual(list(page.get_forms(blacklist=blacklist)), [])
Esempio n. 2
0
 def test_get_forms_blacklisted(self):
     html = u"<html><form action='/forbidden'></form></html>"
     blacklist = ["forbidden"]
     page = FakePage(html)
     self.assertEqual(list(page.get_forms(blacklist=blacklist)), [])
Esempio n. 3
0
 def test_get_forms(self):
     html = u"<html><form action='/test'></form></html>"
     page = FakePage(html)
     self.assertNotEqual(list(page.get_forms()), None)
Esempio n. 4
0
 def test_get_forms(self):
     html = u"<html><form action='/test'></form></html>"
     page = FakePage(html)
     self.assertNotEqual(list(page.get_forms()), None)
Esempio n. 5
0
 def test_get_forms_blacklisted(self):
     url = 'http://test/'
     html = "<html><form action='/forbidden'></form></html>"
     blacklist = ["forbidden"]
     page = webvulnscan.page.Page(url, html, {}, 0, blacklist=blacklist)
     self.assertEqual(list(page.get_forms()), [])
Esempio n. 6
0
 def test_get_forms(self):
     url = 'http://test/'
     html = "<html><form action='/test'></form></html>"
     page = webvulnscan.page.Page(url, html, {}, 0)
     self.assertNotEqual(list(page.get_forms()), None)
Esempio n. 7
0
 def test_get_forms_blacklisted(self):
     url = 'http://test/'
     html = "<html><form action='/forbidden'></form></html>"
     blacklist = ["forbidden"]
     page = webvulnscan.page.Page(url, html, {}, 0, blacklist=blacklist)
     self.assertEqual(list(page.get_forms()), [])
Esempio n. 8
0
 def test_get_forms(self):
     url = 'http://test/'
     html = "<html><form action='/test'></form></html>"
     page = webvulnscan.page.Page(url, html, {}, 0)
     self.assertNotEqual(list(page.get_forms()), None)