#!/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())
def test_body(self, expected, args): self.assertEqual(expected, Request(*args).body)
def test_queries(self, expected, args): self.assertEqual(expected, Request(*args).queries)
def test_query(self, expected, key, args): self.assertEqual(expected, Request(*args).query(key))
def test_header(self, expected, key, args): self.assertEqual(expected, Request(*args).header(key))
def test_url(self, expected, args): self.assertEqual(expected, Request(*args).url)