예제 #1
0
    def test_notify(self):
        NotifiersConfig.get()['pushbullet']['token'] = 'test'

        pushbullet_notifier = PushbulletNotifier.from_config()
        self.PushBullet.assert_called_once_with("test")

        pushbullet_notifier.notify("test", "test")

        self.PushBullet.return_value.push_note.assert_called_once_with("test", "test")
예제 #2
0
    def test_notify(self,Config):
        Config.pushbullet_token = 'test'

        pushbullet_notifier = PushbulletNotifier.from_config()
        self.PushBullet.assert_called_once_with("test")

        pushbullet_notifier.notify("test", "test")

        self.PushBullet.return_value.push_note.assert_called_once_with("test", "test")
예제 #3
0
    def test_notify(self, Config):
        Config.pushbullet_token = 'test'

        pushbullet_notifier = PushbulletNotifier.from_config()
        self.PushBullet.assert_called_once_with("test")

        pushbullet_notifier.notify("test", "test")

        self.PushBullet.return_value.push_note.assert_called_once_with(
            "test", "test")