Пример #1
0
 def testshouldReturnTrueifMailAlreadyinMailAction(self):
     mailaction_mock = self.mocker.mock(notifications.Mail)
     self.mocker.replay()
     defaults = getDefaults()
     defaults['actions'] = [mailaction_mock]
     logtailer = LogTailer(defaults)
     self.assertEqual(True,logtailer.mailIsSetup())
Пример #2
0
 def testshouldReturnFalseMailNotSetup(self):
     self.__setupAConfig()
     properties = Property('aconfig')
     properties.parse_properties()
     defaults = getDefaults()
     defaults['properties'] = properties
     logtailer = LogTailer(defaults)
     self.assertEqual(False,logtailer.mailIsSetup())
Пример #3
0
 def testReturnsFalseifMailActionOrInactivityActionNotificationNotEnabled(self):
     logtailer = LogTailer(getDefaults())
     self.assertEqual(False,logtailer.mailIsSetup())