def METHOD_NAME(self):
    docs = self._get_docs()
    self.assertEqual(len(self.all_doc_ids), len(docs))
    self.assertEqual(set(self._get_doc_ids(docs)),
                     set(self.all_doc_ids))
    docs = self._get_docs(self.middle_id)
    self.assertEqual(8, len(docs))
    self.assertEqual(set(self._get_doc_ids(docs)),
                     set(self.second_batch_global))
    self.assertEqual(0, len(self._get_docs(self.end_id)))