#NEWLINE# def test_put_object_no_versioning( self ) : #NEWLINE# #INDENT# self . app . register ( 'PUT' , '/v1/a/c/o' , swob . HTTPOk , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , 'passed' ) #NEWLINE# cache = FakeCache ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# req = Request . blank ( '/v1/a/c/o' , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'PUT' , #NEWLINE# 'swift.cache' : req , #NEWLINE# 'CONTENT_LENGTH' : '100' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( status , headers , body ) = self . call_vw ( req ) #NEWLINE# self . assertEqual ( status , '200 OK' ) #NEWLINE# self . assertEqual ( len ( self . authorized ) , 1 ) #NEWLINE# self . assertRequestEqual ( req , self . authorized [ 0 ] )