예제 #1
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
from net.request import Request
from Message import Message

if __name__ == '__main__':
	new_request = Request(debug=True)
	new_request.senddata(Message())

예제 #2
0
 def test_body(self, expected, args):
     self.assertEqual(expected, Request(*args).body)
예제 #3
0
 def test_queries(self, expected, args):
     self.assertEqual(expected, Request(*args).queries)
예제 #4
0
 def test_query(self, expected, key, args):
     self.assertEqual(expected, Request(*args).query(key))
예제 #5
0
 def test_header(self, expected, key, args):
     self.assertEqual(expected, Request(*args).header(key))
예제 #6
0
 def test_url(self, expected, args):
     self.assertEqual(expected, Request(*args).url)