Example #1
0
 def setUpClass(cls):
     s = server(name=cls.name(),
                concurrency=cls.concurrency,
                bind='127.0.0.1:0')
     cls.app_cfg = yield from send('arbiter', 'run', s)
     cls.uri = 'http://{0}:{1}'.format(*cls.app_cfg.addresses[0])
     cls.client = HttpClient()
Example #2
0
 async def setUpClass(cls):
     s = server(name=cls.name(), bind='127.0.0.1:0')
     cls.app_cfg = await send('arbiter', 'run', s)
     cls.uri = 'http://{0}:{1}'.format(*cls.app_cfg.addresses[0])
     cls.client = HttpClient()