#NEWLINE# @ util . use_cassette #NEWLINE# def test_delete( vcr_live_sleep ) : #NEWLINE# #INDENT# user = User ( ) #NEWLINE# their_profile = user . quickmatch ( ) #NEWLINE# message_info = their_profile . message ( 'text' ) #NEWLINE# assert ( message_info . thread_id != None ) #NEWLINE# thread_id = user . outbox [ 0 ] . id #NEWLINE# user . outbox [ 0 ] . delete ( ) #NEWLINE# vcr_live_sleep ( 2 ) #NEWLINE# user . outbox ( ) #NEWLINE# try : #NEWLINE# #INDENT# assert ( user . outbox [ 0 ] . id != thread_id ) #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# pass