'Check next page query is correct'

def test_cloudsearch_search_nextpage(self):

    search = SearchConnection(endpoint=HOSTNAME)
    query1 = search.build_query(q='Test')
    query2 = search.build_query(q='Test')
    results = search(query2)
    self.assertEqual(results.next_page().query.start, (query1.start + query1.size))
    self.assertEqual(query1.q, query2.q)
