#NEWLINE# def test_paginate( ) : #NEWLINE# #INDENT# char = '+' #NEWLINE# fill = '.' #NEWLINE# colormap = { #NEWLINE# #INDENT# '+' : 'red' , #NEWLINE# '.' : 'black' , #NEWLINE# #UNINDENT# } #NEWLINE# with fio . open ( POLY_FILE ) as src1 , fio . open ( POLY_FILE ) as src2 : #NEWLINE# #INDENT# for ( paginated_feat , feat ) in zip ( gj2ascii . paginate ( src1 , char = char , fill = src2 , colormap = colormap ) , src2 ) : #NEWLINE# #INDENT# assert ( paginated_feat . strip ( ) == gj2ascii . style ( gj2ascii . render ( feat , char = char , fill = fill ) , stylemap = colormap ) )