#NEWLINE# def test_fetch_threads( self ) : #NEWLINE# #INDENT# self . imap_account = imaplib . IMAP4_SSL ( ) #NEWLINE# assert ( list ( search . fetch_threads ( self . imap_account ) ) == [ [ [ 1 ] , [ 2 ] ] , [ 3 , 4 ] ] ) #NEWLINE# threads = search . fetch_threads ( self . imap_account , search_criterion = [ 'BODY "CONTENT"' ] ) #NEWLINE# assert ( list ( threads ) == [ [ [ 1 ] , [ 2 ] ] , [ 3 , 4 ] ] )