Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad FunctionDef arguments args defaults body Return Dict Str Num decorator_list Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Str Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr TupleLoad Str Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad FunctionDef arguments args defaults body Return Dict Str Num decorator_list Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num NameLoad decorator_list decorator_list
N/A twisted.trial.unittest TestCase twisted.internet.task Clock txstatsd.report ReportingService TestReportingService N/A TestCase N/A test_start_stop_with_no_tasks N/A N/A self N/A N/A N/A Service can be started/stopped even if there are no tasks. N/A service N/A ReportingService N/A N/A N/A self assertEqual 0 N/A len N/A service tasks N/A N/A N/A service startService N/A N/A N/A self assertTrue N/A service running N/A N/A N/A service stopService N/A N/A N/A self assertFalse N/A service running N/A test_schedule_with_report_function N/A N/A self N/A N/A N/A Scheduling with a report function wraps original function. N/A clock N/A Clock N/A service N/A ReportingService clock clock foo N/A N/A N/A N/A N/A N/A foo 1 N/A N/A called N/A report N/A N/A name value N/A N/A N/A N/A N/A called append N/A name value N/A N/A N/A N/A service schedule foo 1 report N/A N/A N/A self assertEqual 1 N/A len N/A service tasks N/A N/A N/A service startService N/A N/A N/A clock advance 1 N/A N/A N/A self assertEquals N/A N/A foo 1 called N/A test_schedule_without_report_function N/A N/A self N/A N/A N/A Scheduling without a report function calls original function. N/A clock N/A Clock N/A service N/A ReportingService clock clock N/A called N/A foo N/A N/A N/A N/A N/A N/A N/A called append N/A foo 1 N/A N/A N/A N/A service schedule foo 1 None N/A N/A N/A self assertEqual 1 N/A len N/A service tasks N/A N/A N/A service startService N/A N/A N/A clock advance 1 N/A N/A N/A self assertEquals N/A N/A foo 1 called N/A test_schedule_when_running N/A N/A self N/A N/A N/A Schedule after service is running runs the task immediately. N/A clock N/A Clock N/A service N/A ReportingService clock clock N/A N/A N/A service startService N/A called N/A foo N/A N/A N/A N/A N/A N/A N/A called append N/A foo 1 N/A N/A N/A N/A service schedule foo 1 None N/A N/A N/A self assertEqual 1 N/A len N/A service tasks N/A N/A N/A self assertEquals N/A N/A foo 1 called N/A test_report_with_instance_name N/A N/A self N/A N/A N/A 
        If an instance_name was provided when creating the ReportingService, it
        gets prepended to the metric name when reporting.
         N/A clock N/A Clock N/A service N/A ReportingService instance_name instance-1 clock clock foo N/A N/A N/A N/A N/A N/A foo 1 N/A N/A called N/A report N/A N/A name value N/A N/A N/A N/A N/A called append N/A name value N/A N/A N/A N/A service schedule foo 1 report N/A N/A N/A self assertEqual 1 N/A len N/A service tasks N/A N/A N/A service startService N/A N/A N/A clock advance 1 N/A N/A N/A self assertEquals N/A N/A instance-1.foo 1 called N/A N/A