コード例 #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)