Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_objects_for_push_notification(self):
import recurly
objs = recurly.objects_for_push_notification("""
verena@test.com
verena
verena@test.com
Verena
Test
Company, Inc.
bronze
Bronze Plan
2
active
def push_notifications(request):
data = recurly.objects_for_push_notification(request.raw_post_data)
try:
signal = getattr(signals, data['type'])
except AttributeError:
return HttpResponseBadRequest("Invalid notification name.")
signal.send(sender=request, data=data)
return HttpResponse()