Пример #1
0
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)
Пример #2
0
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')
Пример #3
0
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')
Пример #4
0
 def get_app(self):
     local_catalog = Catalog(catalog_file)
     self.server = IntakeServer(local_catalog)
     return self.server.make_app()
Пример #5
0
 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()
Пример #6
0
 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()