def test_send_notification(self): n = NotificationService() #delete if some notifier is actualy loaded n.active_notifiers = [] for i in range(10): n.active_notifiers.append(MagicMock()) n.send_notification('test', 'test') for x in n.active_notifiers: x.notify.assert_called_once_with("test", "test")
def test_send_notification(self): n = NotificationService() # delete if some notifier is actualy loaded n.active_notifiers = [] for i in range(10): n.active_notifiers.append(MagicMock()) n.send_notification('test', 'test') for x in n.active_notifiers: x.notify.assert_called_once_with("test", "test")
def test_is_enabled_disabled(self): n = NotificationService() #delete if some notifier is actualy loaded n.active_notifiers = [] self.assertFalse(n.is_enabled())
def test_is_enabled_disabled(self): n = NotificationService() # delete if some notifier is actualy loaded n.active_notifiers = [] self.assertFalse(n.is_enabled())