Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/n/o/nose-alert-0.9.1/nosealert/notifications.py   nose-alert(Download)
import warnings
from .platform import PLATFORM, OSX, LINUX
from os import path
 
 
def notify(sender, title, message, success):
    if PLATFORM == OSX:
        try:
            from gntp.notifier import mini
            mini(message, sender, title=title, notificationIcon=get_icon(success))

src/n/o/nose-alert-0.9.1/nosealert/tests/test_platform.py   nose-alert(Download)
import unittest
from mock import patch
from ..platform import get_platform
from ..platform import OSX
from ..platform import LINUX