def test_has_notifcation_no_notification(self): config_manager = ConfigManager() config_manager.set_notifier(None, None) self.assertFalse(config_manager.has_notifier())
def test_has_notifcation_only_title(self): config_manager = ConfigManager() config_manager.set_notifier("hello", None) self.assertTrue(config_manager.has_notifier())
def test_has_notifcation_only_message(self): config_manager = ConfigManager() config_manager.set_notifier(None, "message") self.assertTrue(config_manager.has_notifier())
def test_set_notifier(self): config_manager = ConfigManager() config_manager.set_notifier("hello", "world") self.assertEqual(config_manager.title, "hello") self.assertEqual(config_manager.message, "world")