def assert_http_server(test, host, port, path='', expected_response='hi'):
 d = query_http_server(host, port, path)
 d.addCallback(test.assertEqual, expected_response)
 return d

def assert_http_server ( test , host , port , path = '' , expected_response = 'hi' ) : d = query_http_server ( host , port , path ) d . addCallback ( test . assertEqual , expected_response ) return d
assert that a http serving a response with body b"hi" is running at given host and port .