def test_patch_item(self): data = 'bullet' result = Format.item(data) assert type(result) == type(u'string') data = 'error' result = Format.item(data) assert type(result) == type(u'string') data = 'warn' result = Format.item(data) assert type(result) == type(u'string') data = 'success' result = Format.item(data) assert type(result) == type(u'string')
def Main(verbose=True): '''Wrapper to run all the scheduled tasks.''' if verbose: print '%s Running scheduler.' % item('bullet') try: while True: schedule.run_pending() time.sleep(1) except Exception as e: print e return False