#NEWLINE# def test_can_match_many_in_both_directions_with_limit( self ) : #NEWLINE# #INDENT# ( a , b , c , d , e , rels ) = self . sample_graph #NEWLINE# matches = list ( b . match ( limit = 2 ) ) #NEWLINE# assert ( len ( matches ) == 2 ) #NEWLINE# for match in matches : #NEWLINE# #INDENT# assert ( self in ( rels [ 0 ] , rels [ 1 ] , rels [ 2 ] , rels [ 3 ] ) )