@@ -0,0 +1,635 @@
+# -*- encoding: utf-8%0A%0Aimport pytest%0A%0Afrom reports import NGINX_LOG_REGEX%0A%0A%0A@pytest.mark.parametrize('log_line', %5B%0A    # Unusual methods%0A    '0.0.0.0 - - %5B01/Jan/2001:00:00:00 +0000%5D %22HEAD /example HTTP/1.0%22 200 0 %22http://referrer.org%22 %22Example user agent%22 %221.2.3.4%22',%0A    '0.0.0.0 - - %5B01/Jan/2001:00:00:00 +0000%5D %22OPTIONS /example HTTP/1.0%22 200 0 %22http://referrer.org%22 %22Example user agent%22 %221.2.3.4%22',%0A    %0A    # Referrer is empty%0A    '0.0.0.0 - - %5B01/Jan/2001:00:00:00 +0000%5D %22GET /example HTTP/1.0%22 200 0 %22%22 %22Example user agent%22 %221.2.3.4%22',%0A%5D)%0Adef test_nginx_regex(log_line):%0A    assert NGINX_LOG_REGEX.match(log_line) is not None%0A

Add a few tests for the analytics code