#NEWLINE# def test_get_pdc_token( self , tmpdir ) : #NEWLINE# #INDENT# tokenfile = os . path . join ( str ( tmpdir ) , SendMailPlugin . PDC_TOKEN_FILE ) #NEWLINE# p = SendMailPlugin ( None , None , pdc_secret_path = str ( tmpdir ) ) #NEWLINE# with open ( tokenfile , 'w' ) as f : #NEWLINE# #INDENT# f . write ( 'thisistoken' ) #NEWLINE# #UNINDENT# assert ( p . _get_pdc_token ( ) == 'thisistoken' )