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 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)
Пример #3
0
 def tearDown(self):
     self.httpserver.shutdown()
     WeightlessTestCase.tearDown(self)
Пример #4
0
 def setUp(self):
     WeightlessTestCase.setUp(self)
     self.port = PortNumberGenerator.next()
     self.httpserver = HttpServer(self.reactor, self.port, self._dispatch)
     self.httpserver.listen()
Пример #5
0
 def tearDown(self):
     self.httpserver.shutdown()
     WeightlessTestCase.tearDown(self)
Пример #6
0
 def setUp(self):
     WeightlessTestCase.setUp(self)
     self.port = PortNumberGenerator.next()
     self.httpserver = HttpServer(self.reactor, self.port, self._dispatch)
     self.httpserver.listen()
Пример #7
0
 def tearDown(self):
     self.server.stop()
     WeightlessTestCase.tearDown(self)
 def tearDown(self):
     self.server.stop()
     WeightlessTestCase.tearDown(self)
Пример #9
0
 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()