def test_scroll_case_names(self): case_one = self._send_case_to_es() case_two = self._send_case_to_es() self.assertEqual( len(list(scroll_case_names(self.domain, [case_one.case_id, case_two.case_id]))), 2 ) self.assertEqual( len(list(scroll_case_names('wrong-domain', [case_one.case_id, case_two.case_id]))), 0 ) self.assertEqual( len(list(scroll_case_names(self.domain, [case_one.case_id]))), 1 )
def test_scroll_case_names(self): case_one = self._send_case_to_es() case_two = self._send_case_to_es() self.assertEqual( len(list(scroll_case_names(self.domain, [case_one.case_id, case_two.case_id]))), 2 ) self.assertEqual( len(list(scroll_case_names('wrong-domain', [case_one.case_id, case_two.case_id]))), 0 ) self.assertEqual( len(list(scroll_case_names(self.domain, [case_one.case_id]))), 1 )