#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( GenericDocumentViewTestCase , self ) . setUp ( ) #NEWLINE# self . document_type = DocumentType . objects . create ( label = TEST_DOCUMENT_TYPE ) #NEWLINE# with open ( TEST_SMALL_DOCUMENT_PATH ) as file_object : #NEWLINE# #INDENT# self . document = self . document_type . new_document ( file_object = File ( file_object ) , label = 'mayan_11_1.pdf' )