Exemplo n.º 1
0
        def topic(self):
            config = Config(HBASE_STORAGE_TABLE=self.parent.table,HBASE_STORAGE_SERVER_PORT=9090)
            storage = Storage(Context(config=config, server=get_server('ACME-SEC')))

            storage.put(IMAGE_URL % '9', IMAGE_BYTES)
            created = storage.exists(IMAGE_URL % '9')
            storage.remove(IMAGE_URL % '9')
            return storage.exists(IMAGE_URL % '9') != created
Exemplo n.º 2
0
        def topic(self):
            config = Config(HBASE_STORAGE_TABLE=self.parent.table,
                            HBASE_STORAGE_SERVER_PORT=9090)
            storage = Storage(
                Context(config=config, server=get_server('ACME-SEC')))

            storage.put(IMAGE_URL % '9', IMAGE_BYTES)
            created = storage.exists(IMAGE_URL % '9')
            storage.remove(IMAGE_URL % '9')
            return storage.exists(IMAGE_URL % '9') != created