def setUp(self): WeightlessTestCase.setUp(self) self.httpprotocol = HttpProtocol() self.server = Server(self.reactor, self.port) dna = (Transparant(), (self.server, (self.httpprotocol, # add your test thing here ) ) ) self.body = be(dna)
def tearDown(self): self.httpserver.shutdown() WeightlessTestCase.tearDown(self)
def setUp(self): WeightlessTestCase.setUp(self) self.port = PortNumberGenerator.next() self.httpserver = HttpServer(self.reactor, self.port, self._dispatch) self.httpserver.listen()
def tearDown(self): self.server.stop() WeightlessTestCase.tearDown(self)
def setUp(self): WeightlessTestCase.setUp(self) self.reactor = Reactor() self.port = randint(2**10, 2**16) self.httpserver = HttpServer(self.reactor, self.port, self.dispatch) self.httpserver.listen()