def METHOD_NAME(self, requests):
    response = mock.MagicMock()
    response.status_code = 503
    response.json.return_value = {"errno": 202}
    requests.put.return_value = response
    u = UserFactory()
    url = "http://example.com/simple_push/asdf"
    PushNotificationRegistration.objects.create(creator=u, push_url=url)
    n = NotificationFactory(owner=u)
    # The push notification handler should try, and then retry 3 times before giving up.
    self.assertEqual(
        requests.put.call_args_list,
        [
            ((url, "version={}".format(n.id)), {}),
            ((url, "version={}".format(n.id)), {}),
            ((url, "version={}".format(n.id)), {}),
            ((url, "version={}".format(n.id)), {}),
        ],
    )