#NEWLINE# def test_put_container( self ) : #NEWLINE# #INDENT# self . app . register ( 'PUT' , '/v1/a/c' , swob . HTTPOk , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , 'passed' ) #NEWLINE# req = Request . blank ( '/v1/a/c' , headers = { #NEWLINE# #INDENT# 'X-Versions-Location' : 'ver_cont' , #NEWLINE# #UNINDENT# } , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'PUT' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( status , headers , body ) = self . call_vw ( req ) #NEWLINE# self . assertEqual ( status , '200 OK' ) #NEWLINE# calls = self . app . calls_with_headers #NEWLINE# ( method , path , req_headers ) = calls [ 0 ] #NEWLINE# self . assertEqual ( 'PUT' , method ) #NEWLINE# self . assertEqual ( '/v1/a/c' , path ) #NEWLINE# self . assertTrue ( ( 'x-container-sysmeta-versions-location' in req_headers ) ) #NEWLINE# self . assertEqual ( len ( self . authorized ) , 1 ) #NEWLINE# self . assertRequestEqual ( req , self . authorized [ 0 ] )