#NEWLINE# def test_37_error_target_owner_unknown( self ) : #NEWLINE# #INDENT# conn = Connection ( SSS_URL , user_name = SSS_UN , user_pass = SSS_PW , error_response_raises_exceptions = False , http_impl = http ) #NEWLINE# conn . get_service_document ( ) #NEWLINE# col = conn . sd . workspaces [ 0 ] [ 1 ] [ 0 ] #NEWLINE# with open ( PACKAGE ) as pkg : #NEWLINE# #INDENT# receipt = conn . create ( col_iri = col . href , payload = pkg , mimetype = PACKAGE_MIME , filename = 'example.zip' , packaging = 'http://purl.org/net/sword/package/SimpleZip' , in_progress = True , suggested_identifier = 'zyxwvutsrq' , on_behalf_of = 'richard' ) #NEWLINE# #UNINDENT# assert ( receipt . code == 403 ) #NEWLINE# assert isinstance ( receipt , Error_Document ) #NEWLINE# assert ( receipt . error_href == 'http://purl.org/net/sword/error/TargetOwnerUnknown' )