Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Mock httplib.HTTPConnection object.

src/t/i/tinydav-0.7.3/test/TestTinyDAV.py   tinydav(Download)
    def setUp(self):
        """Setup the client."""
        self.http = HTTPClient("127.0.0.1", 80)
        self.con = Mock.HTTPConnection()
        self.http._getconnection = lambda: self.con
    def setUp(self):
        """Setup the client."""
        self.dav = CoreWebDAVClient("127.0.0.1", 80)
        self.dav.setbasicauth("test", "passwd")
        self.con = Mock.HTTPConnection()
    def setUp(self):
        """Setup the client."""
        self.dav = ExtendedWebDAVClient("127.0.0.1", 80)
        self.dav.setbasicauth("test", "passwd")
        self.con = Mock.HTTPConnection()