(self)
| 121 | self.server_started.wait() |
| 122 | |
| 123 | def tearDown(self): |
| 124 | self.thread.stop() |
| 125 | self.thread = None |
| 126 | os.environ.__exit__() |
| 127 | threading_helper.threading_cleanup(*self._threads) |
| 128 | |
| 129 | def request(self, uri, method='GET', body=None, headers={}): |
| 130 | self.connection = http.client.HTTPConnection(self.HOST, self.PORT) |