'Test paginated response of notes api'

def test_notes_collection(self):

    response = requests.get(self._get_url('api/v1/annotations'))
    self.assertEqual(response.status_code, 400)
    response = requests.get(self._get_url('api/v1/annotations'), params={'user': 'dummy-user-id'})
    self.assertTrue(response.ok)
    self._verify_pagination_info(response=response.json(), total_notes=5, num_pages=3, notes_per_page=2, start=0, current_page=1, next_page=2, previous_page=None)
    response = requests.get(self._get_url('api/v1/annotations'), params={'user': 'dummy-user-id', 'page': 2, 'page_size': 3})
    self.assertTrue(response.ok)
    self._verify_pagination_info(response=response.json(), total_notes=5, num_pages=2, notes_per_page=2, start=3, current_page=2, next_page=None, previous_page=1)
