#NEWLINE# def test_document_move_to_trash( self ) : #NEWLINE# #INDENT# with open ( TEST_SMALL_DOCUMENT_PATH ) as file_object : #NEWLINE# #INDENT# document = self . document_type . new_document ( file_object = File ( file_object ) ) #NEWLINE# #UNINDENT# self . client . delete ( reverse ( 'rest_api:document-detail' , args = ( self . pk , ) ) ) #NEWLINE# self . assertEqual ( Document . objects . count ( ) , 0 ) #NEWLINE# self . assertEqual ( Document . trash . count ( ) , 1 )