'Getting the callback from the server should verify the subscription.'

def test_verify(self):

    sub = PushSubscription.objects.create(topic='topic', hub='hub', verified=False)
    verify_token = sub.generate_token('subscribe')
    response = self.client.get(reverse('pubsubhubbub_callback', args=(sub.pk,)), {'hub.mode': 'subscribe', 'hub.topic': sub.topic, 'hub.challenge': 'challenge', 'hub.lease_seconds': 2000, 'hub.verify_token': verify_token})
    self.assertEquals(response.status_code, 200)
    self.assertEquals(response.content, 'challenge')
    sub = PushSubscription.objects.get(pk=sub.pk)
    self.assertEquals(sub.verified, True)
    self.assertEquals(len(self.signals), 1)
    self.assertEquals(self.signals[0], (verified, {'sender': sub}))
