def tearDown(self):
    'Stop MQTTGateway if alive.'
    if self.gateway.is_alive():
        self.gateway.stop()
Stop MQTTGateway if alive.
def tearDown(self):
    
    if self.gateway.is_alive():
        self.gateway.stop()