#NEWLINE# def test_log_request_stat_type_bad( self ) : #NEWLINE# #INDENT# for bad_path in [ '' , '/' , '/bad' , '/baddy/mc_badderson' , '/v1' , '/v1/' ] : #NEWLINE# #INDENT# app = proxy_logging . ProxyLoggingMiddleware ( FakeApp ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# app . access_logger = FakeLogger ( ) #NEWLINE# req = Request . blank ( req , environ = { #NEWLINE# #INDENT# 'REQUEST_METHOD' : 'GET' , #NEWLINE# #UNINDENT# } ) #NEWLINE# now = 10000.0 #NEWLINE# app . log_request ( req , 123 , 7 , 13 , now , ( now + 2.71828182846 ) ) #NEWLINE# self . assertEqual ( [ ] , app . access_logger . log_dict [ 'timing' ] ) #NEWLINE# self . assertEqual ( [ ] , app . access_logger . log_dict [ 'update_stats' ] )