class TestServerV1Base(AsyncHTTPTestCase): def get_app(self): local_catalog = Catalog(catalog_file) self.server = IntakeServer(local_catalog) return self.server.make_app() def encode(self, msg): return msgpack.packb(msg, use_bin_type=True) def decode(self, bytestr): return msgpack.unpackb(bytestr, **unpack_kwargs)
class TestServerV1Base(AsyncHTTPTestCase): def get_app(self): catalog_file = os.path.join(os.path.dirname(__file__), 'catalog1.yml') local_catalog = Catalog(catalog_file) self.server = IntakeServer(local_catalog) return self.server.make_app() def encode(self, msg): return msgpack.packb(msg, use_bin_type=True) def decode(self, bytestr): return msgpack.unpackb(bytestr, encoding='utf-8')
def get_app(self): local_catalog = Catalog(catalog_file) self.server = IntakeServer(local_catalog) return self.server.make_app()
def get_app(self): catalog_file = os.path.join(os.path.dirname(__file__), 'catalog1.yml') local_catalog = Catalog(catalog_file) self.server = IntakeServer(local_catalog) return self.server.make_app()