#NEWLINE# def test_add_to_rc( self ) : #NEWLINE# #INDENT# ' Test if the add_to_rc method adds to the rc ' #NEWLINE# test_content = 'THIS IS AN OOOGA BOOGA TEST ' #NEWLINE# self . directory . add_to_rc ( test_content ) #NEWLINE# rc_file_path = os . path . join ( test_content . directory . root_dir , '.rc' ) #NEWLINE# del self . directory #NEWLINE# assert ( open ( rc_file_path ) . read ( ) . find ( test_content ) != ( - 1 ) ) , 'test content was not found!'