Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Expr Call NameLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Expr Call NameLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num With Call NameLoad Str body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call NameLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Expr Call NameLoad Str Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str Expr Call NameLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list decorator_list
N/A decimal Decimal N/A mock N/A time django.test TestCase django.conf settings app_metrics.utils metric timing gauge StatsdCreationTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super StatsdCreationTests self setUp N/A N/A self old_backend N/A getattr settings APP_METRICS_BACKEND None N/A N/A settings APP_METRICS_BACKEND app_metrics.backends.statsd N/A test_metric N/A N/A self N/A N/A N/A N/A N/A mock patch statsd.Client mock_client N/A N/A instance N/A mock_client return_value N/A N/A N/A instance _send return_value 1 N/A N/A metric testing N/A N/A N/A N/A mock_client _send assert_called_with N/A mock ANY N/A testing 1|c N/A N/A metric testing 2 N/A N/A N/A N/A mock_client _send assert_called_with N/A mock ANY N/A testing 2|c N/A N/A metric another 4 N/A N/A N/A N/A mock_client _send assert_called_with N/A mock ANY N/A another 4|c N/A test_timing N/A N/A self N/A N/A N/A N/A N/A mock patch statsd.Client mock_client N/A N/A instance N/A mock_client return_value N/A N/A N/A instance _send return_value 1 N/A N/A timing testing N/A N/A N/A N/A time sleep 0.025 N/A N/A N/A N/A mock_client _send assert_called_with N/A mock ANY N/A testing.total N/A mock ANY N/A test_gauge N/A N/A self N/A N/A N/A N/A N/A mock patch statsd.Client mock_client N/A N/A instance N/A mock_client return_value N/A N/A N/A instance _send return_value 1 N/A N/A gauge testing 10.5 N/A N/A N/A N/A mock_client _send assert_called_with N/A mock ANY N/A testing 10.5|g N/A N/A gauge testing N/A Decimal 6.576 N/A N/A N/A N/A mock_client _send assert_called_with N/A mock ANY N/A testing 6.576|g N/A N/A gauge another 1 N/A N/A N/A N/A mock_client _send assert_called_with N/A mock ANY N/A another 1|g N/A tearDown N/A N/A self N/A N/A N/A N/A settings APP_METRICS_BACKEND N/A self old_backend N/A N/A N/A N/A super StatsdCreationTests self tearDown N/A N/A