#NEWLINE# def test_clear_feature_symlinks( self ) : #NEWLINE# #INDENT# ' clear feature symlinks ' #NEWLINE# test_feature = 'woops' #NEWLINE# os . makedirs ( self . directory . install_directory ( test_feature ) ) #NEWLINE# test_file = os . path . join ( self . directory . install_directory ( test_feature ) , 'test_file' ) #NEWLINE# with open ( temp_file , 'w+' ) as temp_file : #NEWLINE# #INDENT# temp_file . write ( 'hobo' ) #NEWLINE# #UNINDENT# self . directory . symlink_to_bin ( 'test_file' , test_file ) #NEWLINE# self . directory . symlink_to_lib ( 'test_file' , test_file ) #NEWLINE# self . directory . clear_feature_symlinks ( test_feature ) #NEWLINE# assert ( not os . path . exists ( os . path . join ( self . directory . bin_path ( ) , 'test_file' ) ) ) #NEWLINE# assert ( not os . path . exists ( os . path . join ( self . directory . lib_path ( ) , 'test_file' ) ) )