#NEWLINE# def test_can_remove_dot_segments_pattern_2( ) : #NEWLINE# #INDENT# path_in = Path ( 'mid/content=5/../6' ) #NEWLINE# path_out = path_in . remove_dot_segments ( ) #NEWLINE# assert ( path_out == 'mid/6' )