#NEWLINE# def test_access_token_credentials( self ) : #NEWLINE# #INDENT# access_token = 'foo' #NEWLINE# user_agent = 'refresh_checker/1.0' #NEWLINE# credentials = AccessTokenCredentials ( access_token , user_agent ) #NEWLINE# s = file . Storage ( FILENAME ) #NEWLINE# credentials = s . put ( credentials ) #NEWLINE# credentials = s . get ( ) #NEWLINE# self . assertNotEquals ( None , access_token ) #NEWLINE# self . assertEquals ( 'foo' , credentials . access_token ) #NEWLINE# self . assertTrue ( os . path . exists ( FILENAME ) ) #NEWLINE# if ( os . name == 'posix' ) : #NEWLINE# #INDENT# mode = os . stat ( FILENAME ) . st_mode #NEWLINE# self . assertEquals ( '0o600' , oct ( stat . S_IMODE ( mode ) ) )