#NEWLINE# def test_not_exceed_bytes_quota_copy_verb( self ) : #NEWLINE# #INDENT# app = container_quotas . ContainerQuotaMiddleware ( FakeApp ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# cache = FakeCache ( { #NEWLINE# #INDENT# 'bytes' : 0 , #NEWLINE# 'meta' : { #NEWLINE# #INDENT# 'quota-bytes' : '100' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# req = Request . blank ( '/v1/a/c2/o2' , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'COPY' , #NEWLINE# 'swift.object/a/c2/o2' : { #NEWLINE# #INDENT# 'length' : 10 , #NEWLINE# #UNINDENT# } , #NEWLINE# 'swift.cache' : cache , #NEWLINE# #UNINDENT# } , headers = { #NEWLINE# #INDENT# 'Destination' : '/c/o' , #NEWLINE# #UNINDENT# } ) #NEWLINE# res = req . get_response ( app ) #NEWLINE# self . assertEqual ( res . status_int , 200 )