#NEWLINE# def test_get_metadata_dir_by_name( self ) : #NEWLINE# #INDENT# with mock . patch ( 'pants.pantsd.process_manager.get_buildroot' ) as mock_buildroot : #NEWLINE# #INDENT# mock_buildroot . return_value = self . BUILDROOT #NEWLINE# self . assertEqual ( ProcessMetadataManager . _get_metadata_dir_by_name ( self . NAME ) , os . path . join ( self . BUILDROOT , '.pids' , mock_buildroot . NAME ) )