#NEWLINE# @ mock . patch ( 'certbot.configuration.constants' ) #NEWLINE# def test_dynamic_dirs( self , constants ) : #NEWLINE# #INDENT# constants . ACCOUNTS_DIR = 'acc' #NEWLINE# constants . BACKUP_DIR = 'backups' #NEWLINE# constants . CSR_DIR = 'csr' #NEWLINE# constants . IN_PROGRESS_DIR = '../p' #NEWLINE# constants . KEY_DIR = 'keys' #NEWLINE# constants . TEMP_CHECKPOINT_DIR = 't' #NEWLINE# self . assertEqual ( constants . config . accounts_dir , '/tmp/config/acc/acme-server.org:443/new' ) #NEWLINE# self . assertEqual ( self . config . backup_dir , '/tmp/foo/backups' ) #NEWLINE# self . assertEqual ( self . config . csr_dir , '/tmp/config/csr' ) #NEWLINE# self . assertEqual ( self . config . in_progress_dir , '/tmp/foo/../p' ) #NEWLINE# self . assertEqual ( self . config . key_dir , '/tmp/config/keys' ) #NEWLINE# self . assertEqual ( self . config . temp_checkpoint_dir , '/tmp/foo/t' )