#NEWLINE# def test_normalize( self ) : #NEWLINE# #INDENT# test_pairs = [ ( '~' , os . path . expanduser ( '~' ) ) , ( os . curdir , os . getcwd ( ) ) , ( os . pardir , os . path . abspath ( os . path . join ( os . getcwd ( ) , os . pardir ) ) ) ] #NEWLINE# for ( test_path , expected_result ) in test_pairs : #NEWLINE# #INDENT# actual_result = path_util . normalize ( test_path ) #NEWLINE# self . assertTrue ( os . path . isabs ( actual_result ) ) #NEWLINE# self . assertEqual ( test_path , expected_result ) #NEWLINE# self . assertEqual ( path_util . normalize ( actual_result ) , actual_result )