Module Expr Str Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Dict Str Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Dict Str Call NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad Dict Str NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call NameLoad keyword ListLoad Str decorator_list Call NameLoad keyword Str
N/A N/A 
Tests for the Spring Metrics template tags and filters.
 N/A re django.contrib.auth.models User AnonymousUser django.http HttpRequest django.template Context django.test.utils override_settings analytical.templatetags.spring_metrics SpringMetricsNode analytical.tests.utils TagTestCase analytical.utils AnalyticalException SpringMetricsTagTestCase N/A TagTestCase N/A N/A 
    Tests for the ``spring_metrics`` template tag.
     test_tag N/A N/A self N/A N/A N/A r N/A N/A self render_tag spring_metrics spring_metrics N/A N/A N/A self assertTrue N/A _springMetq.push(['id', '12345678']); r r N/A test_node N/A N/A self N/A N/A N/A r N/A N/A N/A SpringMetricsNode render N/A Context N/A N/A N/A N/A self assertTrue N/A _springMetq.push(['id', '12345678']); r r N/A test_no_site_id N/A N/A self N/A N/A N/A N/A N/A self assertRaises AnalyticalException SpringMetricsNode N/A N/A override_settings SPRING_METRICS_TRACKING_ID None test_wrong_site_id N/A N/A self N/A N/A N/A N/A N/A self assertRaises AnalyticalException SpringMetricsNode N/A N/A override_settings SPRING_METRICS_TRACKING_ID 123xyz test_identify N/A N/A self N/A N/A N/A r N/A N/A N/A SpringMetricsNode render N/A Context N/A user N/A User email test@test.com N/A N/A N/A self assertTrue N/A _springMetq.push(['setdata', {'email': 'test@test.com'}]); r r N/A N/A override_settings ANALYTICAL_AUTO_IDENTIFY True test_identify_anonymous_user N/A N/A self N/A N/A N/A r N/A N/A N/A SpringMetricsNode render N/A Context N/A user N/A AnonymousUser N/A N/A N/A self assertFalse N/A _springMetq.push(['setdata', {'email': r r N/A N/A override_settings ANALYTICAL_AUTO_IDENTIFY True test_custom N/A N/A self N/A N/A N/A r N/A N/A N/A SpringMetricsNode render N/A Context N/A spring_metrics_var1 spring_metrics_var2 val1 val2 N/A N/A N/A self assertTrue N/A _springMetq.push(['setdata', {'var1': 'val1'}]); r r N/A N/A N/A self assertTrue N/A _springMetq.push(['setdata', {'var2': 'val2'}]); r r N/A test_render_internal_ip N/A N/A self N/A N/A N/A req N/A HttpRequest N/A N/A N/A req META N/A REMOTE_ADDR 1.1.1.1 N/A context N/A Context N/A request req N/A r N/A N/A N/A SpringMetricsNode render context N/A N/A N/A self assertTrue N/A N/A r startswith <!-- Spring Metrics disabled on internal IP address r N/A N/A N/A self assertTrue N/A N/A r endswith --> r N/A N/A override_settings ANALYTICAL_INTERNAL_IPS N/A 1.1.1.1 N/A N/A override_settings SPRING_METRICS_TRACKING_ID 12345678