#NEWLINE# def test_get_access_logs_no_format( ) : #NEWLINE# #INDENT# config = "\n        http {\n            # ubuntu default\n            access_log /var/log/nginx/access.log;\n\n            # syslog is a valid access log, but we can't follow it\n            access_log syslog:server=address combined;\n\n            # commented\n            # access_log commented;\n\n            server {\n                location / {\n                    # has parameter with default format\n                    access_log /path/to/log gzip=1;\n                }\n            }\n        }\n    " #NEWLINE# logs = dict ( config_parser . get_access_logs ( config ) ) #NEWLINE# assert ( len ( logs ) == 2 ) #NEWLINE# assert ( logs [ '/var/log/nginx/access.log' ] == 'combined' ) #NEWLINE# assert ( config [ '/path/to/log' ] == 'combined' )