Exemple #1
0
 def test_add_when_qs(self):
     rp = rnd_param()
             
     u = URL('http://www.w3af.com/?id=1')
     r = HTTPRequest( u )
     qs = rp.modify_request( r ).url_object.querystring
     self.assertEqual(len(qs), 2)
Exemple #2
0
    def test_add_when_qs(self):
        rp = rnd_param()

        u = URL('http://www.w3af.com/?id=1')
        r = HTTPRequest(u)
        qs = rp.modify_request(r).url_object.querystring
        self.assertEqual(len(qs), 2)
Exemple #3
0
    def test_add_when_qs_and_postdata(self):
        rp = rnd_param()
        
        u = URL('http://www.w3af.com/?id=1')
        r = HTTPRequest( u, data='a=b' )
        modified_request = rp.modify_request( r )

        data = parse_qs( modified_request.get_data() )
        self.assertEqual(len(data), 2)

        modified_qs = modified_request.url_object.querystring
        self.assertEqual(len(modified_qs), 2)
Exemple #4
0
    def test_add_when_qs_and_postdata(self):
        rp = rnd_param()

        u = URL('http://www.w3af.com/?id=1')
        r = HTTPRequest(u, data='a=b')
        modified_request = rp.modify_request(r)

        data = parse_qs(modified_request.get_data())
        self.assertEqual(len(data), 2)

        modified_qs = modified_request.url_object.querystring
        self.assertEqual(len(modified_qs), 2)
Exemple #5
0
 def setUp(self):
     self.eplugin = rnd_param()
Exemple #6
0
 def setUp(self):
     self.eplugin = rnd_param()