Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias alias alias Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Num Num NameLoad NameLoad NameLoad Str Str NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad Num Num Num Assign NameStore Str With Call NameLoad NameLoad NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore ListLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str Str TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad Num Num Num Assign NameStore Str With Call NameLoad NameLoad NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str NameLoad TupleLoad NameLoad BinOpSub NameLoad Call NameLoad keyword BinOpMult Num Num Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Num NameLoad NameLoad BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Num NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str ListLoad Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore ListLoad TupleLoad Str Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore ListLoad TupleLoad Str Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Num Num Num Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num Num Num Num Num Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num Num Num Num Num Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num Num Num Num Num Assign NameStore Call NameLoad Num Num Num Num Num Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore ListLoad Str Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore Dict Str Str ListLoad Str Str Str ListLoad Dict Str Str Str ListLoad Num Num Num Dict Str Str Str ListLoad Num Num Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str ListLoad Str Str NameLoad Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Str Str keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore Dict Str Str ListLoad Str Str Str ListLoad Dict Str Str Str ListLoad Num Num Num Dict Str Str Str ListLoad Num Num Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad NameLoad Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign SubscriptStore NameLoad Index Str Call NameLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign SubscriptStore NameLoad Index Str Call NameLoad Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Assign NameStore Dict Str Str ListLoad Str Str Str ListLoad Dict Str Str Str ListLoad Num Num Num Dict Str Str Str ListLoad Num Num Num Assign NameStore ListLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str keyword Str keyword NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str ListLoad Str Str Call NameLoad Num Num Num Num Num Num Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Str Str keyword Call NameLoad Num Num Num Num Num Num keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Str Str keyword Call NameLoad Num Num Num Num Num Num keyword Str decorator_list decorator_list Call NameLoad keyword NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str NameLoad Str Str ListLoad Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Str decorator_list decorator_list
N/A __future__ unicode_literals datetime datetime timedelta django.test TestCase django.test.utils override_settings mock patch redis_metrics.templatetags redis_metric_tags taglib redis_metrics.templatetags.redis_metrics_filters metric_slug strip_metric_prefix to_int to_int_list N/A TEST_SETTINGS N/A HOST PORT DB PASSWORD SOCKET_TIMEOUT SOCKET_CONNECTION_POOL MIN_GRANULARITY MAX_GRANULARITY MONDAY_FIRST_DAY_OF_WEEK localhost 6379 0 None None None seconds yearly False TestTemplateTags N/A TestCase N/A N/A Verify that template tags return the expected results. N/A maxDiff None setUp N/A N/A self N/A N/A N/A Patch the ``R`` class. N/A N/A self r_patcher N/A patch redis_metrics.models.R N/A N/A self mock_r N/A N/A N/A self r_patcher start N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self r_patcher stop N/A test_metrics_since_history N/A N/A self N/A N/A N/A Tests the ``metrics_since`` template tag when displaying metric
        history. N/A slug test-slug N/A years 5 N/A link_type history N/A now N/A datetime 2014 7 4 N/A module redis_metrics.templatetags.redis_metric_tags.datetime N/A N/A patch module mock_datetime N/A N/A N/A N/A mock_datetime utcnow return_value now N/A result N/A N/A taglib metrics_since slug years link_type N/A N/A N/A self assertIn link_type N/A N/A result keys N/A N/A N/A self assertIn slug_values N/A N/A result keys N/A N/A N/A self assertEqual N/A result N/A link_type link_type N/A expected N/A N/A slug N/A now N/A timedelta days 1 Today daily N/A slug N/A now N/A timedelta days 7 1 Week daily N/A slug N/A now N/A timedelta days 30 30 Days daily N/A slug N/A now N/A timedelta days 60 60 Days daily N/A slug N/A now N/A timedelta days 90 90 Days daily N/A slug N/A now N/A timedelta days 365 1 Years daily N/A slug N/A now N/A timedelta days N/A 365 2 2 Years daily N/A slug N/A now N/A timedelta days N/A 365 3 3 Years daily N/A slug N/A now N/A timedelta days N/A 365 4 4 Years daily N/A slug N/A now N/A timedelta days N/A 365 5 5 Years daily N/A N/A N/A self assertEqual expected N/A result N/A slug_values N/A test_metrics_since_aggregate N/A N/A self N/A N/A N/A Tests the ``metrics_since`` template tag when displaying metric
        aggregate history. N/A slugs N/A test-a test-b N/A years 5 N/A link_type aggregate N/A granularity weekly N/A now N/A datetime 2014 7 4 N/A module redis_metrics.templatetags.redis_metric_tags.datetime N/A N/A patch module mock_datetime N/A N/A N/A N/A mock_datetime utcnow return_value now N/A result N/A N/A taglib metrics_since slugs years link_type granularity N/A N/A N/A self assertIn link_type N/A N/A result keys N/A N/A N/A self assertIn slug_values N/A N/A result keys N/A N/A N/A self assertEqual N/A result N/A link_type link_type N/A slugs N/A N/A + join slugs N/A expected N/A N/A slugs N/A now N/A timedelta days 1 Today granularity N/A slugs N/A now N/A timedelta days 7 1 Week granularity N/A slugs N/A now N/A timedelta days 30 30 Days granularity N/A slugs N/A now N/A timedelta days 60 60 Days granularity N/A slugs N/A now N/A timedelta days 90 90 Days granularity N/A slugs N/A now N/A timedelta days 365 1 Years granularity N/A slugs N/A now N/A timedelta days N/A 365 2 2 Years granularity N/A slugs N/A now N/A timedelta days N/A 365 3 3 Years granularity N/A slugs N/A now N/A timedelta days N/A 365 4 4 Years granularity N/A slugs N/A now N/A timedelta days N/A 365 5 5 Years granularity N/A N/A N/A self assertEqual expected N/A result N/A slug_values N/A test_gauge N/A N/A self N/A N/A N/A Tests the result of the gauge template tag. N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A inst N/A mock_r return_value N/A N/A N/A inst get_gauge return_value 100 N/A size 50 N/A maximum 200 N/A result N/A N/A taglib gauge test-slug maximum size N/A expected_result N/A slug current_value max_value size diff test-slug 100 maximum size N/A maximum 100 N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst get_gauge assert_called_once_with test-slug N/A test_gauge_when_overloaded N/A N/A self N/A N/A N/A Tests the result of a gauge whose current value > the maximum N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A inst N/A mock_r return_value N/A N/A N/A inst get_gauge return_value 500 N/A size 50 N/A maximum 200 N/A result N/A N/A taglib gauge test-slug maximum size N/A expected_result N/A slug current_value max_value size diff test-slug 500 maximum size 0 N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst get_gauge assert_called_once_with test-slug N/A test_metric_list N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A inst N/A mock_r return_value N/A N/A N/A inst metric_slugs_by_category return_value RESULT N/A result N/A N/A taglib metric_list N/A expected_result N/A metrics RESULT N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst metric_slugs_by_category assert_called_once_with N/A test_metric_detail N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A inst N/A mock_r return_value N/A N/A N/A inst get_metric return_value RESULT N/A N/A N/A inst _granularities return_value N/A daily weekly N/A result N/A N/A taglib metric_detail test N/A expected_result N/A granularities slug metrics with_data_table N/A daily weekly test RESULT False N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst get_metric assert_called_once_with test N/A test_metric_history N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A history N/A N/A m:test:2000-01-01 42 N/A inst N/A mock_r return_value N/A N/A N/A inst get_metric_history return_value history N/A result N/A N/A taglib metric_history test N/A expected_result N/A slug granularity metric_history since to with_data_table test daily history None None False N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst get_metric_history assert_called_once_with slugs test granularity daily since None to None N/A test_metric_history_with_date N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A history N/A N/A m:test:2000-01-01 42 N/A inst N/A mock_r return_value N/A N/A N/A inst get_metric_history return_value history N/A expected_result N/A slug granularity metric_history since to with_data_table test daily history None None False N/A since N/A datetime 2000 1 2 N/A N/A expected_result N/A since since N/A result N/A N/A taglib metric_history test since 2000-01-02 N/A N/A N/A self assertEqual result expected_result N/A N/A N/A N/A inst get_metric_history assert_called_once_with slugs test granularity daily since since to None N/A N/A N/A inst reset_mock N/A since N/A datetime 2000 1 2 11 30 45 N/A N/A expected_result N/A since since N/A result N/A N/A taglib metric_history test since 2000-01-02 11:30:45 N/A N/A N/A self assertEqual result expected_result N/A N/A N/A N/A inst get_metric_history assert_called_once_with slugs test granularity daily since since to None N/A N/A N/A inst reset_mock N/A since N/A datetime 2000 1 2 11 30 45 N/A N/A expected_result N/A since since N/A result N/A N/A taglib metric_history test since since N/A N/A N/A self assertEqual result expected_result N/A N/A N/A N/A inst get_metric_history assert_called_once_with slugs test granularity daily since since to None N/A N/A N/A inst reset_mock N/A since N/A datetime 2000 1 2 11 30 45 N/A to N/A datetime 2001 1 2 11 30 45 N/A N/A expected_result N/A since since N/A N/A expected_result N/A to to N/A result N/A N/A taglib metric_history test since since to to N/A N/A N/A self assertEqual result expected_result N/A N/A N/A N/A inst get_metric_history assert_called_once_with slugs test granularity daily since since to to N/A test_aggregate_detail N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A slugs N/A a1 a2 N/A inst N/A mock_r return_value N/A N/A N/A inst get_metrics return_value RESULTS N/A result N/A N/A taglib aggregate_detail slugs N/A expected_result N/A chart_id slugs metrics with_data_table metric-aggregate-a1-a2 slugs RESULTS False N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst get_metrics assert_called_once_with slugs N/A test_aggregate_history N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A history N/A periods data N/A 2000-01-01 2000-01-02 2000-01-03 N/A N/A slug values bar N/A 1 2 3 N/A slug values foo N/A 4 5 6 N/A inst N/A mock_r return_value N/A N/A N/A inst get_metric_history_chart_data return_value history N/A result N/A N/A taglib aggregate_history N/A foo bar N/A expected_result N/A chart_id slugs since granularity metric_history tabular_data with_data_table metric-aggregate-history-foo-bar N/A foo bar None daily history None False N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst get_metric_history_chart_data assert_called_once_with slugs N/A foo bar since None granularity daily N/A test_aggregate_history_with_date N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A history N/A periods data N/A 2000-01-01 2000-01-02 2000-01-03 N/A N/A slug values bar N/A 1 2 3 N/A slug values foo N/A 4 5 6 N/A inst N/A mock_r return_value N/A N/A N/A inst get_metric_history_chart_data return_value history N/A slugs N/A foo bar N/A expected_result N/A chart_id slugs since granularity metric_history tabular_data with_data_table metric-aggregate-history-foo-bar slugs None daily history None False N/A result N/A N/A taglib aggregate_history slugs since 2000-01-02 N/A N/A expected_result N/A since N/A datetime 2000 1 2 N/A N/A N/A self assertEqual result expected_result N/A result N/A N/A taglib aggregate_history slugs since 2000-01-02 11:30:45 N/A N/A expected_result N/A since N/A datetime 2000 1 2 11 30 45 N/A N/A N/A self assertEqual result expected_result N/A d N/A datetime 2000 1 2 11 30 45 N/A result N/A N/A taglib aggregate_history slugs since d N/A N/A expected_result N/A since d N/A N/A N/A self assertEqual result expected_result N/A test_aggregate_history_with_tabular_data N/A N/A self N/A N/A N/A N/A patch redis_metrics.templatetags.redis_metric_tags.get_r mock_r N/A N/A history N/A periods data N/A 2000-01-01 2000-01-02 2000-01-03 N/A N/A slug values bar N/A 1 2 3 N/A slug values foo N/A 4 5 6 N/A tabular_history N/A N/A Period foo bar N/A 2000-01-01 100 200 N/A 2000-01-02 200 300 N/A 2000-01-02 300 400 N/A inst N/A mock_r return_value N/A N/A N/A inst get_metric_history_chart_data return_value history N/A N/A N/A inst get_metric_history_as_columns return_value tabular_history N/A result N/A N/A taglib aggregate_history N/A foo bar since 2000-01-01 11:30:45 with_data_table True N/A expected_result N/A chart_id slugs since granularity metric_history tabular_data with_data_table metric-aggregate-history-foo-bar N/A foo bar N/A datetime 2000 1 1 11 30 45 daily history tabular_history True N/A N/A N/A self assertEqual result expected_result N/A N/A N/A mock_r assert_called_once_with N/A N/A N/A N/A inst get_metric_history_chart_data assert_called_once_with slugs N/A foo bar since N/A datetime 2000 1 1 11 30 45 granularity daily N/A N/A N/A N/A inst get_metric_history_as_columns assert_called_once_with slugs N/A foo bar since N/A datetime 2000 1 1 11 30 45 granularity daily N/A N/A N/A override_settings REDIS_METRICS TEST_SETTINGS TestTemplateFilters N/A TestCase N/A N/A Verify that the custom filters return expected results. test_to_int_list N/A N/A self N/A N/A N/A Verify that the ``int_list`` filter converts strings to numbers and that
        it returns 0 when given unexpected values. N/A N/A N/A self assertEqual N/A to_int_list N/A 3 None asdf 42 N/A 3 0 0 42 N/A test_to_int N/A N/A self N/A N/A N/A Verify that the ``int`` filter converts strings to numbers and that
        it returns 0 when given unexpected values. N/A N/A N/A self assertEqual N/A to_int 3 3 N/A N/A N/A self assertEqual N/A to_int asdf 0 N/A N/A N/A self assertEqual N/A to_int None 0 N/A test_strip_metric_prefix N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A strip_metric_prefix m:test:s:2000-01-30-14-45-37 s:2000-01-30-14-45-37 N/A N/A N/A self assertEqual N/A strip_metric_prefix m:test:i:2000-01-30-14-45 i:2000-01-30-14-45 N/A N/A N/A self assertEqual N/A strip_metric_prefix m:test:h:2000-01-30-00 h:2000-01-30-00 N/A N/A N/A self assertEqual N/A strip_metric_prefix m:test:2000-01-30 2000-01-30 N/A N/A N/A self assertEqual N/A strip_metric_prefix m:test:w:2000-52 w:2000-52 N/A N/A N/A self assertEqual N/A strip_metric_prefix m:test:m:2000-01 m:2000-01 N/A N/A N/A self assertEqual N/A strip_metric_prefix m:test:y:2000 y:2000 N/A test_metric_slug N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A metric_slug m:foo:s:2000-01-31-14-45-37 foo N/A N/A N/A self assertEqual N/A metric_slug m:foo:i:2000-01-31-14-45 foo N/A N/A N/A self assertEqual N/A metric_slug m:foo:h:2000-01-31-14 foo N/A N/A N/A self assertEqual N/A metric_slug m:foo:2000-01-31 foo N/A N/A N/A self assertEqual N/A metric_slug m:foo:w:2000-52 foo N/A N/A N/A self assertEqual N/A metric_slug m:foo:m:2000-01 foo N/A N/A N/A self assertEqual N/A metric_slug m:foo:y:2000 foo N/A N/A