def setUp(self):
    'Set up gateway.'
    self.mock_pub = mock.Mock()
    self.mock_sub = mock.Mock()
    self.gateway = MQTTGateway(self.mock_pub, self.mock_sub)
Set up gateway.
def setUp(self):
    
    self.mock_pub = mock.Mock()
    self.mock_sub = mock.Mock()
    self.gateway = MQTTGateway(self.mock_pub, self.mock_sub)