def test_unregister(pushbots): d_msg = '\nTesting unregister_token() with token:{0}.'.format(token1) c, d = unregister_token(pushbots=pushbots, token=token1, platform=platform) process_request(d_msg, c, d) data = {'platform': platform, 'token': token2} d_msg = '\nTesting unregister_data() with token:{0}.'.format(token2) c, d = unregister_data(pushbots=pushbots, data=data) process_request(d_msg, c, d)
def unregister_all(pushbots): # Unregister all tokens debug('\nUnregistering any devices associated with test\'s tokens...') unregister_token(pushbots=pushbots, token=token1, platform=platform) unregister_token(pushbots=pushbots, token=token2, platform=platform) unregister_token(pushbots=pushbots, token=token3, platform=platform) unregister_token(pushbots=pushbots, token=token4, platform=platform) unregister_token(pushbots=pushbots, token=token5, platform=platform) unregister_token(pushbots=pushbots, token=token6, platform=platform) unregister_token(pushbots=pushbots, token=token7, platform=platform) debug('\nDone!')