def coro(): h = GNTPHandler(loop=loop) notifier.add_target(local_target) logging.debug('GNTP: register') response = yield from h.register(notifier, local_target) assert response['status'] == 'OK'
def coro(): h = GNTPHandler(loop=loop) notifier.icon = icon logging.debug('GNTP: register with icon') response = yield from h.register(notifier, local_target) assert response['status'] == 'OK' assert response['status_code'] == 0
def coro(): h = GNTPHandler(loop=loop) notification = notifier.create_notification(name='New', title="A brave new world", text="Say hello to Prism") logging.debug('GNTP: notify') response = yield from h.register(notifier, local_target) print(response) response = yield from h.notify(notification, local_target) print(response) assert response['status'] == 'OK' assert response['status_code'] == 0