#NEWLINE# def test_missing_container( self ) : #NEWLINE# #INDENT# app = container_quotas . ContainerQuotaMiddleware ( FakeMissingApp ( ) , { #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/c/o' , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'PUT' , #NEWLINE# 'swift.cache' : res , #NEWLINE# 'CONTENT_LENGTH' : '100' , #NEWLINE# #UNINDENT# } ) #NEWLINE# res = req . get_response ( app ) #NEWLINE# self . assertEqual ( res . status_int , 404 )