Пример #1
0
 def test_logger_name(self):
     data = {}
     value = None
     listeners = []
     data = {Constants.GlobalData.START_TIME: datetime.utcnow()}
     uptime = instantuate_me(data)
     self.assertEqual(uptime.logger_name, Constants.LogKeys.steps)
Пример #2
0
 def test_topic_name(self):
     data = {}
     value = None
     listeners = []
     data = {Constants.GlobalData.START_TIME: datetime.utcnow()}
     uptime = instantuate_me(data)
     self.assertEqual(uptime.topic_name, Constants.TopicNames.UpTime)