Exemple #1
0
 def test_logger_name(self):
     data = {}
     N = instantuate_me(data)
     self.assertEqual(N.logger_name, Constants.LogKeys.StatusPanel)
     self.assertEqual(N.garage_door_monitor.logger_name,
                      Constants.LogKeys.StatusPanel)
     self.assertEqual(N.process_delayed_alarm.logger_name,
                      Constants.LogKeys.StatusPanel)
Exemple #2
0
 def test_topic_name(self):
     data = {}
     N = instantuate_me(data)
     self.assertEqual(N.garage_door_monitor.topic_name,
                      Constants.TopicNames.StatusPanel_GarageDoorMonitor)
     self.assertEqual(N.process_delayed_alarm.topic_name,
                      Constants.TopicNames.StatusPanel_ProcessDelayedAlarm)
     self.assertEqual(N.disable_alarm_button.topic_name,
                      Constants.TopicNames.StatusPanel_DisableAlarmButton)
 def test_topic_name( self ):
     data = {}
     N = instantuate_me( data )
     self.assertEqual( N.garage_door_monitor.topic_name, Constants.TopicNames.StatusPanel_GarageDoorMonitor )
     self.assertEqual( N.process_delayed_alarm.topic_name, Constants.TopicNames.StatusPanel_ProcessDelayedAlarm )
     self.assertEqual( N.disable_alarm_button.topic_name, Constants.TopicNames.StatusPanel_DisableAlarmButton )
 def test_logger_name( self ):
     data = {}
     N = instantuate_me( data )
     self.assertEqual( N.logger_name, Constants.LogKeys.StatusPanel )
     self.assertEqual( N.garage_door_monitor.logger_name, Constants.LogKeys.StatusPanel )
     self.assertEqual( N.process_delayed_alarm.logger_name, Constants.LogKeys.StatusPanel )
 def test_instantuate_me( self ):
     data = {}
     N = instantuate_me( data )
     self.assertIsInstance( N, StatusPanel )
     self.assertIsInstance( N.garage_door_monitor, StatusPanel.GarageDoorMonitor )
Exemple #6
0
 def test_instantuate_me(self):
     data = {}
     N = instantuate_me(data)
     self.assertIsInstance(N, StatusPanel)
     self.assertIsInstance(N.garage_door_monitor,
                           StatusPanel.GarageDoorMonitor)