I find it nicer than class decorators to put patches in setup like:

    p = mock.patch('lib.solitude.api.client.is_callback_token_valid')
    self.tok_check = p.start()
    self.addCleanup(p.stop)