6
from httplib2.test import miniserver
9
class HttpSmokeTest(unittest.TestCase):
11
self.httpd, self.port = miniserver.start_server(
12
miniserver.ThisDirHandler)
17
def testGetFile(self):
18
client = httplib2.Http()
20
response, body = client.request('http://localhost:%d/%s' %
22
self.assertEqual(response.status, 200)
23
self.assertEqual(body, open(os.path.join(miniserver.HERE, src)).read())