#NEWLINE# def test_34_complete_deposit( self ) : #NEWLINE# #INDENT# conn = Connection ( SSS_URL , user_name = SSS_UN , user_pass = SSS_PW , on_behalf_of = SSS_OBO , http_impl = http ) #NEWLINE# conn . get_service_document ( ) #NEWLINE# col = conn . sd . workspaces [ 0 ] [ 1 ] [ 0 ] #NEWLINE# e = Entry ( title = 'Foo' , id = 'asidjasidj' , dcterms_abstract = 'abstract' , dcterms_title = 'my title' ) #NEWLINE# with open ( PACKAGE ) as pkg : #NEWLINE# #INDENT# receipt = conn . create ( col_iri = col . href , metadata_entry = e , payload = pkg , mimetype = PACKAGE_MIME , filename = 'example.zip' , packaging = 'http://purl.org/net/sword/package/SimpleZip' , in_progress = True , suggested_identifier = 'zyxwvutsrq' ) #NEWLINE# #UNINDENT# edit_iri = receipt . location #NEWLINE# receipt = conn . get_deposit_receipt ( edit_iri ) #NEWLINE# response = conn . complete_deposit ( dr = receipt ) #NEWLINE# assert ( receipt . code == 200 )