capybara/result.py
def _cache_at_least(self, size):
        """
        Attempts to fill the result cache with at least the given number of results.

        Returns:
            bool: Whether the cache contains at least the given size.
        """

        try:
            while len(self._result_cache) < size:
                self._result_cache.append(next(self._result_iter))
            return True
        except StopIteration:
            return False
def _cache_at_least(self, size):
        try:
            while len(self._result_cache) < size:
                self._result_cache.append(next(self._result_iter))
            return True
        except StopIteration:
            return False
def _cache_at_least ( self , size ) : try : while len ( self . _result_cache ) < size : self . _result_cache . append ( next ( self . _result_iter ) ) return True except StopIteration : return False
Attempts to fill the result cache with at least the given number of results.

        Returns:
            bool: Whether the cache contains at least the given size.
Attempts to fill the result cache with at least the given number of results .