(self)
| 13 | class TestResponse(unittest.TestCase): |
| 14 | |
| 15 | def setUp(self): |
| 16 | self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
| 17 | self.fp = self.sock.makefile('rb') |
| 18 | self.test_headers = {"Host": "www.python.org", |
| 19 | "Connection": "close"} |
| 20 | |
| 21 | def test_with(self): |
| 22 | addbase = urllib.response.addbase(self.fp) |