Пример #1
0
    def test_is_enabled_enabled(self, Config):
        Config.pushbullet_token = 'test'

        self.assertTrue(PushbulletNotifier.is_enabled())
Пример #2
0
    def test_is_enabled_disabled(self, Config):
        Config.pushbullet_token = ''

        self.assertFalse(PushbulletNotifier.is_enabled())
Пример #3
0
    def test_is_enabled_enabled(self):
        NotifiersConfig.get()['pushbullet']['enabled'] = True

        self.assertTrue(PushbulletNotifier.is_enabled())
Пример #4
0
    def test_is_enabled_disabled(self):
        NotifiersConfig.get()['pushbullet']['enabled'] = False

        self.assertFalse(PushbulletNotifier.is_enabled())
Пример #5
0
    def test_is_enabled_enabled(self, Config):
        Config.pushbullet_token = 'test'

        self.assertTrue(PushbulletNotifier.is_enabled())
Пример #6
0
    def test_is_enabled_disabled(self, Config):
        Config.pushbullet_token = ''

        self.assertFalse(PushbulletNotifier.is_enabled())