self.logger.error("The minimum available time %s (ms) for radio front end processing is lower than the threshold %s (ms)."%(min_rxtx_delay,self.min_rxtx_delay_threshold))
else:
self.logger.info("The minimum %s (ms) available time for radio front end processing is OK"%(min_rxtx_delay,))
self.json_logger.info("Minimum available time for radio front end processing (ms)",
extra={'data':{'min_rxtx_delay':min_rxtx_delay}})
deftest(self):
"""
Called after sense() if the instance is still converging.
Returns success or failure based on sense results.
In this case, fail if the previous sensor result is negative.
"""
returnself._test(result_count=1,failure_amount=1)
defanomaly(self):
"""
Called after sense() if the instance has finished converging.
Returns success or failure based on sense results.
Failure signals the instance has diverged.
In this case, fail if two out of the last three results are negative.
self.assertEqual("Loss of Frame (LOF) alarm is on, affected objects are: {'name': 'Radio Module'}",self.getPromiseResult(self.promise_name)['result']['message'])