예제 #1
0
 def test_validate_stopped_application(self):
     application = 'error'
     kc = KeepAliveChecker()
     with HTTMock(self.mock_invalid):
         kc.check_application(application, 'localhost')
     self.assertFalse(kc.validated[application])
예제 #2
0
 def test_validate_running_application(self):
     application = 'test'
     with HTTMock(self.mock_valid):
         kc = KeepAliveChecker(silent=False)
         kc.check_application(application, "somewhere")
     self.assertTrue(kc.validated[application])