def METHOD_NAME(self):
    docs = self._get_docs_for_domain(self.domain, None)
    self.assertEqual(len(self.all_doc_ids_domain), len(docs))
    self.assertEqual(set(self._get_doc_ids(docs)),
                     set(self.all_doc_ids_domain))
    docs = self._get_docs_for_domain(self.domain, self.middle_id)
    self.assertEqual(len(self.second_batch_domain), len(docs))
    self.assertEqual(set(self._get_doc_ids(docs)),
                     set(self.second_batch_domain))
    self.assertEqual(0, len(self._get_docs_for_domain(self.domain, self.end_id)))