Example #1
0
class WatchdogUnitTest(BaseUnitTest):
    
    ALIVE_TIME = 100
    MAX_EXECUTIONS = 3
    
    def setUp(self):
        self.on_setUp()
        self.watchdog = Watchdog()
    
    def tearDown(self):
        self.on_tearDown()
        self.watchdog.stop()
        del self.watchdog
        
    def test_classname(self):
        """ Checks the class instance """
        try:
            self.assertEqual(self.watchdog.__class__.__name__, 'Watchdog')
        except RuntimeError, e:
            self.assertTrue(False)
Example #2
0
 def setUp(self):
     self.on_setUp()
     self.watchdog = Watchdog()