def test_export_with_dc(self): fr = FuzzableRequest(URL("http://www.w3af.com/")) d = DataContainer() d['a'] = ['1',] fr.set_dc(d) self.assertEqual(fr.export(), 'GET,http://www.w3af.com/?a=1,')
def test_export_with_dc(self): fr = FuzzableRequest(URL("http://www.w3af.com/")) d = DataContainer() d['a'] = [ '1', ] fr.set_dc(d) self.assertEqual(fr.export(), 'GET,http://www.w3af.com/?a=1,')
def test_export_without_dc(self): fr = FuzzableRequest(URL("http://www.w3af.com/")) self.assertEqual(fr.export(), 'GET,http://www.w3af.com/,')