Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_init(self):
notification = Notification("random", "random")
assert notification
def test_raise(self):
message = {"error": {"code": 9000, "message": "it's over 9000"}}
with pytest.raises(ClientException):
Notification.get_or_raise(message)