'If the hub returns a 202 response, we should not assume the
subscription is verified.'

def test_async_verify(self):

    self.responses.append(MockResponse(202))
    sub = PushSubscription.objects.subscribe('topic', 'hub', 'callback', 2000)
    self.assertEquals(len(self.signals), 1)
    self.assertEquals(self.signals[0], (pre_subscribe, {'sender': sub, 'created': True}))
    self.assertEquals(sub.hub, 'hub')
    self.assertEquals(sub.topic, 'topic')
    self.assertEquals(sub.verified, False)
    rough_expires = (datetime.now() + timedelta(seconds=2000))
    self.assert_((abs((sub.lease_expires - rough_expires)).seconds < 5), 'lease    more    than    5    seconds    off')
    self.assertEquals(len(self.requests), 1)
    request = self.requests[0]
    self.assertEquals(request[0], 'hub')
    self.assertEquals(request[1]['mode'], 'subscribe')
    self.assertEquals(request[1]['topic'], 'topic')
    self.assertEquals(request[1]['callback'], 'callback')
    self.assertEquals(request[1]['verify'], ('async', 'sync'))
    self.assertEquals(request[1]['verify_token'], sub.verify_token)
    self.assertEquals(request[1]['lease_seconds'], 2000)
