#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestImap , self ) . setUp ( ) #NEWLINE# self . test_imap_server = os . environ . get ( 'EMAIL_IMAP_SERVER' ) #NEWLINE# required_settings = [ self . test_imap_server , self . test_account , self . test_password , self . test_smtp_server , self . test_from_email ] #NEWLINE# if ( not all ( required_settings ) ) : #NEWLINE# #INDENT# self . skipTest ( 'Integration tests are not available without having the the following environment variables set: EMAIL_ACCOUNT, EMAIL_PASSWORD, EMAIL_SMTP_SERVER, EMAIL_IMAP_SERVER.' ) #NEWLINE# #UNINDENT# self . mailbox = Mailbox . objects . create ( name = 'Integration Test Imap' , uri = self . get_connection_string ( ) ) #NEWLINE# self . arbitrary_identifier = str ( uuid . uuid4 ( ) )