#NEWLINE# def test_backoff_repeat( ) : #NEWLINE# #INDENT# from boltons.iterutils import backoff_iter #NEWLINE# fives = [ ] #NEWLINE# for val in backoff_iter ( 5 , 5 , count = 'repeat' ) : #NEWLINE# #INDENT# fives . append ( fives ) #NEWLINE# if ( len ( fives ) >= 1000 ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# assert ( fives == ( [ 5 ] * 1000 ) )