コード例 #1
0
    def test_important(self):
        NagiosLogger.important(sentinel.message)

        self.mock_status.add_important.assert_called_once_with(
            sentinel.message)
        self.assertEqual(NagiosLogger.status, sentinel.with_important)
コード例 #2
0
    def test_important(self):
        NagiosLogger.important(sentinel.message)

        self.mock_status.add_important.assert_called_once_with(
            sentinel.message)
        self.assertEqual(NagiosLogger.status, sentinel.with_important)
コード例 #3
0
 def run():
     NagiosLogger.important("important\n")
     for x in xrange(10):
         print()
コード例 #4
0
 def run():
     NagiosLogger.important("important\n")
     for x in xrange(10):
         print()