#NEWLINE# def test_expected_directory_1( self ) : #NEWLINE# #INDENT# 'Test test expected directory finder/creator, test 1.' #NEWLINE# dummy_user = dbutil . random_name ( 'user' ) #NEWLINE# expected_path = os . path . join ( dbutil . TEST_RESOURCES_ROOT , dummy_user , 'expected' , 'module' , 'suite' ) #NEWLINE# old_user = os . environ [ 'USER' ] #NEWLINE# try : #NEWLINE# #INDENT# os . environ [ 'USER' ] = dummy_user #NEWLINE# path = dbutil . expected_directory ( 'module' , 'suite' ) #NEWLINE# self . check_directory ( path , expected_path ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# os . environ [ 'USER' ] = old_user #NEWLINE# os . removedirs ( path )