def test_get_all_more_than_2k(self):
        """If we execute a get_all then we expect multiple
        invocations of a cmr granule search and
        to not fetch back more results than we ask for.
        """
        granules = earthaccess.search_data(
            short_name="CYGNSS_NOAA_L2_SWSP_25KM_V1.2", count=3000
        )

        # Assert that we performed a hits query and two search results queries
        self.assertEqual(len(self.cassette), 3)
        self.assertEqual(
            len(granules), int(self.cassette.responses[0]["headers"]["CMR-Hits"][0])
        )
        self.assertEqual(
            len(granules),
            min(3000, int(self.cassette.responses[0]["headers"]["CMR-Hits"][0])),
        )
        self.assertTrue(unique_results(granules))
If we execute a get_all then we expect multiple
        invocations of a cmr granule search and
        to not fetch back more results than we ask for.
        
tests/unit/test_results.py