#NEWLINE# def test_path_absolutize( self ) : #NEWLINE# #INDENT# tests = ( './foo/bar/' , './foo/bar/baz' , './foo/baz/../bar/blub' ) #NEWLINE# abspath = ( os . path . abspath ( './foo/bar/' ) + os . sep ) #NEWLINE# for test in tests : #NEWLINE# #INDENT# rm = ResourceManager ( ) #NEWLINE# rm . add_path ( test ) #NEWLINE# self . assertEqual ( rm . path , [ abspath ] ) #NEWLINE# #UNINDENT# for test in tests : #NEWLINE# #INDENT# rm = ResourceManager ( ) #NEWLINE# rm . add_path ( test [ 2 : ] ) #NEWLINE# self . assertEqual ( rm . path , [ abspath ] )