#NEWLINE# def test_access_logs_with_format_name( ) : #NEWLINE# #INDENT# config = "\n        http {\n            access_log /path/to/main.log main gzip=5 buffer=32k flush=1m;\n            server {\n                access_log /path/to/test.log 'te st';\n            }\n        }\n    " #NEWLINE# logs = dict ( config_parser . get_access_logs ( config ) ) #NEWLINE# assert ( len ( logs ) == 2 ) #NEWLINE# assert ( logs [ '/path/to/main.log' ] == 'main' ) #NEWLINE# assert ( logs [ '/path/to/test.log' ] == 'te st' )