'If the number of seconds to lease the subscription is not specified, it
should default to 2592000 (30 days).'

def test_least_seconds_default(self):

    self.responses.append(MockResponse(202))
    sub = PushSubscription.objects.subscribe('topic', 'hub', 'callback')
    rough_expires = (datetime.now() + timedelta(seconds=2592000))
    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[1]['lease_seconds'], 2592000)
