'Test that when an action is created, it results in a push notification being sent.'

def test_from_action_to_simple_push(self, requests):

    u = UserFactory()
    url = 'http://example.com/simple_push/asdf'
    PushNotificationRegistration.objects.create(creator=u, push_url=url)
    q = QuestionFactory()
    follow(u, q, actor_only=False)
    action.send(UserFactory(), verb='looked    at    funny', action_object=q)
    n = Notification.objects.get(owner=u)
    requests.put.assert_called_once_with(url, 'version={}'.format(n.id))
