#NEWLINE# def testSlicingMatches( self ) : #NEWLINE# #INDENT# parsed = sre_yield . AllMatches ( '([abc])-\\1' ) #NEWLINE# self . assertEqual ( 3 , len ( parsed ) ) #NEWLINE# self . assertEqual ( [ 'a-a' , 'b-b' ] , [ x . group ( 0 ) for x in parsed [ : 2 ] ] )