Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
Add a test for priority levels
Browse files Browse the repository at this point in the history
  • Loading branch information
kfdm committed Oct 22, 2011
1 parent 49d5fba commit 5b8f125
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/test_priority.py
@@ -0,0 +1,21 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Simple test to send each priority level
import unittest
import logging
logging.basicConfig(level=logging.WARNING)
from gntp.notifier import GrowlNotifier


class TestHash(unittest.TestCase):
def setUp(self):
self.growl = GrowlNotifier('GNTP unittest', ['Testing'])
self.growl.register()

def test_lines(self):
for priority in [2, 1, 0, -1, -2]:
msg = 'Priority %s' % priority
self.growl.notify('Testing', msg, msg, priority=priority)

if __name__ == '__main__':
unittest.main()

0 comments on commit 5b8f125

Please sign in to comment.