Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Dict Str Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Str decorator_list Call NameLoad Str Call NameLoad Str Call NameLoad keyword NameLoad Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A test CollectorTestCase test get_collector_config test unittest mock Mock mock patch N/A N/A cStringIO StringIO N/A N/A N/A ImportError N/A StringIO StringIO diamond.collector Collector proc ProcessStatCollector TestProcessStatCollector N/A CollectorTestCase N/A setUp N/A N/A self N/A N/A N/A config N/A get_collector_config ProcessStatCollector N/A interval 1 N/A N/A self collector N/A ProcessStatCollector config None N/A test_import N/A N/A self N/A N/A N/A N/A N/A self assertTrue ProcessStatCollector N/A test_should_open_proc_stat N/A N/A self publish_mock open_mock N/A N/A N/A N/A open_mock return_value N/A StringIO N/A N/A N/A N/A self collector collect N/A N/A N/A open_mock assert_called_once_with /proc/stat r N/A N/A patch __builtin__.open N/A patch os.access N/A Mock return_value True N/A N/A patch object Collector publish test_should_work_with_real_data N/A N/A self publish_mock N/A N/A N/A N/A ProcessStatCollector PROC N/A N/A self getFixturePath proc_stat_1 N/A N/A N/A N/A self collector collect N/A N/A N/A self assertPublishedMany publish_mock N/A N/A N/A ProcessStatCollector PROC N/A N/A self getFixturePath proc_stat_2 N/A N/A N/A N/A self collector collect N/A metrics N/A ctxt btime processes procs_running procs_blocked ctxt btime processes procs_running procs_blocked 0 1319181102 0 1 0 1791 1319181102 2 1 0 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main