#NEWLINE# def test_n_at_a_time( self ) : #NEWLINE# #INDENT# result = list ( u . n_at_a_time ( range ( 100 ) , 9 ) ) #NEWLINE# self . assertEqual ( ( ( [ 9 ] * 11 ) + [ 1 ] ) , list ( map ( len , result ) ) ) #NEWLINE# result = list ( u . n_at_a_time ( range ( 100 ) , 10 ) ) #NEWLINE# self . assertEqual ( ( [ 10 ] * 10 ) , list ( map ( len , result ) ) ) #NEWLINE# result = list ( u . n_at_a_time ( range ( 100 ) , 11 ) ) #NEWLINE# self . assertEqual ( ( ( [ 11 ] * 9 ) + [ 1 ] ) , list ( map ( len , result ) ) ) #NEWLINE# result = list ( u . n_at_a_time ( range ( 100 ) , 12 ) ) #NEWLINE# self . assertEqual ( ( ( [ 12 ] * 8 ) + [ 4 ] ) , list ( map ( len , result ) ) )