def _create_syndic(): """ Create syndic instance :return: """ obj = daemons.Syndic() obj.config = {"user": "******", "hash_type": alg} for attr in ["syndic", "start_log_info", "prepare", "shutdown"]: setattr(obj, attr, MagicMock()) return obj
def _create_syndic(): ''' Create syndic instance :return: ''' obj = daemons.Syndic() obj.config = {'user': '******', 'hash_type': alg} for attr in ['syndic', 'start_log_info', 'prepare', 'shutdown']: setattr(obj, attr, MagicMock()) return obj