Example #1
0
 def test_has_notifcation_no_notification(self):
     config_manager = ConfigManager()
     config_manager.set_notifier(None, None)
     self.assertFalse(config_manager.has_notifier())
Example #2
0
 def test_has_notifcation_only_title(self):
     config_manager = ConfigManager()
     config_manager.set_notifier("hello", None)
     self.assertTrue(config_manager.has_notifier())
Example #3
0
 def test_has_notifcation_only_message(self):
     config_manager = ConfigManager()
     config_manager.set_notifier(None, "message")
     self.assertTrue(config_manager.has_notifier())
Example #4
0
 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")