'This method is used to carry out the push notification bouncer
requests using the Django test browser, rather than python-requests.'

def bounce_request(self, *args, **kwargs):

    local_url = args[1].replace(settings.PUSH_NOTIFICATION_BOUNCER_URL, '')
    if (args[0] == 'POST'):
        result = self.client_post(local_url, kwargs['data'], **self.get_auth())
    else:
        raise AssertionError('Unsupported    method    for    bounce_request')
    return result
