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