#NEWLINE# def test_invalid_quotas( self ) : #NEWLINE# #INDENT# req = Request . blank ( '/v1/a/c' , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'POST' , #NEWLINE# 'HTTP_X_CONTAINER_META_QUOTA_BYTES' : 'abc' , #NEWLINE# #UNINDENT# } ) #NEWLINE# res = req . get_response ( container_quotas . ContainerQuotaMiddleware ( FakeApp ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( res . status_int , 400 ) #NEWLINE# req = Request . blank ( '/v1/a/c' , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'POST' , #NEWLINE# 'HTTP_X_CONTAINER_META_QUOTA_COUNT' : 'abc' , #NEWLINE# #UNINDENT# } ) #NEWLINE# res = req . get_response ( container_quotas . ContainerQuotaMiddleware ( FakeApp ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( res . status_int , 400 )