How to use the aria2p.client.Notification function in aria2p

To help you get started, we’ve selected a few aria2p examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pawamoy / aria2p / tests / test_client.py View on Github external
def test_init(self):
        notification = Notification("random", "random")
        assert notification
github pawamoy / aria2p / tests / test_client.py View on Github external
def test_raise(self):
        message = {"error": {"code": 9000, "message": "it's over 9000"}}
        with pytest.raises(ClientException):
            Notification.get_or_raise(message)