def METHOD_NAME(self):
    PlanFactory.create_batch(settings.API_PAGE_SIZE * 2)
    url = reverse('plan-list')
    response = self.client.get(url)
    full_url = None
    for field in response.data:
        full_url = field.get('url', None)
        if full_url:
            break
    if full_url:
        domain = full_url.split('/')[2]
        full_url = full_url.split(domain)[0] + domain + url
    assert response.status_code == status.HTTP_200_OK
    assert response['link'] == \
        ('<' + full_url + '?page=2>; rel="next", ' +
         '<' + full_url + '?page=1>; rel="first", ' +
         '<' + full_url + '?page=2> rel="last"')
    response = self.client.get(url + '?page=2')
    assert response.status_code == status.HTTP_200_OK
    assert response['link'] == \
        ('<' + full_url + '>; rel="prev", ' +
         '<' + full_url + '?page=1>; rel="first", ' +
         '<' + full_url + '?page=2> rel="last"')