#NEWLINE# def test_start_1st_line_match( ) : #NEWLINE# #INDENT# target = 'classBackgroundLayer(' #NEWLINE# should_match = 'class BackgroundLayer(cocos.layer.Layer)' #NEWLINE# filling = '\n' . join ( [ 'this is a line' , 'this is another' ] ) #NEWLINE# text = ( ( should_match + '\n' ) + filling ) #NEWLINE# lines = text . split ( '\n' ) #NEWLINE# it = enumerate ( lines ) #NEWLINE# start_line = get_start_line ( it , text ) #NEWLINE# assert ( start_line == 0 ) #NEWLINE# assert ( six . next ( it ) == ( 1 , lines [ 1 ] ) )