Module ImportFrom alias Import alias identifier Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num 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 AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num 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 AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num keyword Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num Num TupleLoad Str Num Num 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 AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num Num TupleLoad Str Num keyword 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 AttributeLoad NameLoad attr keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num TupleLoad Str Num Num keyword Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num 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 AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad Print NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A graphitesend graphitesend N/A unittest2 unittest N/A socket N/A os TestAll N/A N/A unittest TestCase N/A N/A  Basic tests ( better than nothing )  setUp N/A N/A self N/A N/A N/A  reset graphitesend  N/A N/A N/A graphitesend reset N/A N/A graphitesend default_graphite_server localhost N/A N/A self hostname N/A N/A N/A os uname N/A 1 N/A N/A self server N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A N/A self server setsockopt N/A socket SOL_SOCKET N/A socket SO_REUSEADDR 1 N/A N/A N/A N/A self server bind N/A localhost 2003 N/A N/A N/A N/A self server listen 5 N/A tearDown N/A N/A self N/A N/A N/A  reset graphitesend  N/A N/A N/A graphitesend reset N/A N/A N/A N/A N/A N/A self server shutdown N/A socket SHUT_RD N/A N/A N/A N/A self server close N/A N/A N/A Exception N/A N/A N/A N/A self server None N/A test_connect_exception_on_badhost N/A N/A self N/A N/A N/A bad_graphite_server missinggraphiteserver.example.com N/A N/A graphitesend default_graphite_server bad_graphite_server N/A N/A N/A self assertRaises N/A graphitesend GraphiteSendException N/A N/A N/A N/A graphitesend init N/A test_set_lowercase_metric_names N/A N/A self N/A N/A N/A g N/A N/A graphitesend init lowercase_metric_names True N/A N/A N/A self assertEqual N/A g lowercase_metric_names True N/A test_lowercase_metric_names N/A N/A self N/A N/A N/A g N/A N/A graphitesend init lowercase_metric_names True N/A send_data N/A N/A g send METRIC 1 N/A N/A N/A self assertEqual N/A metric send_data True N/A N/A N/A self assertEqual N/A METRIC send_data False N/A test_create_graphitesend_instance N/A N/A self N/A N/A N/A g N/A N/A graphitesend init N/A expected_type N/A type N/A N/A graphitesend GraphiteClient N/A g_type N/A type g N/A N/A N/A self assertEqual g_type expected_type N/A test_monkey_patch_of_graphitehost N/A N/A self N/A N/A N/A g N/A N/A graphitesend init N/A custom_prefix N/A N/A g addr N/A 0 N/A N/A N/A self assertEqual custom_prefix localhost N/A test_fqdn_squash N/A N/A self N/A N/A N/A g N/A N/A graphitesend init fqdn_squash True N/A custom_prefix N/A g prefix N/A expected_results N/A systems.%s. N/A N/A N/A self hostname replace . _ N/A N/A N/A self assertEqual custom_prefix expected_results N/A test_noprefix N/A N/A self N/A N/A N/A g N/A N/A graphitesend init N/A custom_prefix N/A g prefix N/A N/A N/A self assertEqual custom_prefix N/A systems.%s. N/A self hostname N/A test_system_name N/A N/A self N/A N/A N/A g N/A N/A graphitesend init system_name remote_host N/A custom_prefix N/A g prefix N/A expected_prefix systems.remote_host. N/A N/A N/A self assertEqual custom_prefix expected_prefix N/A test_empty_system_name N/A N/A self N/A N/A N/A g N/A N/A graphitesend init system_name N/A custom_prefix N/A g prefix N/A expected_prefix systems. N/A N/A N/A self assertEqual custom_prefix expected_prefix N/A test_no_system_name N/A N/A self N/A N/A N/A g N/A N/A graphitesend init group foo N/A custom_prefix N/A g prefix N/A expected_prefix N/A systems.%s.foo. N/A self hostname N/A N/A N/A self assertEqual custom_prefix expected_prefix N/A test_prefix N/A N/A self N/A N/A N/A g N/A N/A graphitesend init prefix custom_prefix N/A custom_prefix N/A g prefix N/A N/A N/A self assertEqual custom_prefix N/A custom_prefix.%s. N/A self hostname N/A test_prefix_double_dot N/A N/A self N/A N/A N/A g N/A N/A graphitesend init prefix custom_prefix. N/A custom_prefix N/A g prefix N/A N/A N/A self assertEqual custom_prefix N/A custom_prefix.%s. N/A self hostname N/A test_prefix_remove_spaces N/A N/A self N/A N/A N/A g N/A N/A graphitesend init prefix custom prefix N/A custom_prefix N/A g prefix N/A N/A N/A self assertEqual custom_prefix N/A custom_prefix.%s. N/A self hostname N/A test_set_prefix_group N/A N/A self N/A N/A N/A g N/A N/A graphitesend init prefix prefix group group N/A custom_prefix N/A g prefix N/A expected_prefix N/A prefix.%s.group. N/A self hostname N/A N/A N/A self assertEqual custom_prefix expected_prefix N/A test_set_prefix_group_system N/A N/A self N/A N/A N/A g N/A N/A graphitesend init prefix prefix system_name system group group N/A custom_prefix N/A g prefix N/A expected_prefix prefix.system.group. N/A N/A N/A self assertEqual custom_prefix expected_prefix N/A test_set_suffix N/A N/A self N/A N/A N/A g N/A N/A graphitesend init suffix custom_suffix N/A custom_suffix N/A g suffix N/A N/A N/A self assertEqual custom_suffix custom_suffix N/A test_set_group_prefix N/A N/A self N/A N/A N/A g N/A N/A graphitesend init group custom_group N/A expected_prefix N/A systems.%s.custom_group. N/A self hostname N/A custom_prefix N/A g prefix N/A N/A N/A self assertEqual custom_prefix expected_prefix N/A test_default_prefix N/A N/A self N/A N/A N/A g N/A N/A graphitesend init N/A expected_prefix N/A systems.%s. N/A self hostname N/A custom_prefix N/A g prefix N/A N/A N/A self assertEqual custom_prefix expected_prefix N/A test_leave_suffix N/A N/A self N/A N/A N/A g N/A N/A graphitesend init N/A default_suffix N/A g suffix N/A N/A N/A self assertEqual default_suffix N/A test_clean_metric N/A N/A self N/A N/A N/A g N/A N/A graphitesend init N/A metric_name N/A N/A g clean_metric_name test(name) N/A N/A N/A self assertEqual metric_name test_name N/A metric_name N/A N/A g clean_metric_name test name N/A N/A N/A self assertEqual metric_name test_name N/A metric_name N/A N/A g clean_metric_name test  name N/A N/A N/A self assertEqual metric_name test__name N/A test_clean_metric_false N/A N/A self N/A N/A N/A g N/A N/A graphitesend init clean_metric_name False N/A metric_name N/A N/A g clean_metric_name test(name) N/A N/A N/A self assertEqual metric_name test(name) N/A metric_name N/A N/A g clean_metric_name test name N/A N/A N/A self assertEqual metric_name test name N/A metric_name N/A N/A g clean_metric_name test__name N/A N/A N/A self assertEqual metric_name test__name N/A test_reset N/A N/A self N/A N/A N/A N/A N/A graphitesend init N/A N/A N/A graphitesend reset N/A graphite_instance N/A graphitesend _module_instance N/A N/A N/A self assertEqual graphite_instance None N/A test_force_failure_on_send N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init N/A N/A N/A graphite_instance disconnect N/A N/A N/A self assertRaises N/A graphitesend GraphiteSendException N/A N/A N/A N/A graphite_instance send metric 0 N/A test_force_unknown_failure_on_send N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init N/A N/A graphite_instance socket None N/A N/A N/A self assertRaises N/A graphitesend GraphiteSendException N/A N/A N/A N/A graphite_instance send metric 0 N/A test_send_list_metric_value N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix test system_name local N/A response N/A N/A graphite_instance send_list N/A N/A metric 1 N/A N/A N/A self assertEqual N/A long message: test.local.metric 1 response True N/A N/A N/A self assertEqual N/A 1.00000 response True N/A test_send_list_metric_value_single_timestamp N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix test N/A response N/A N/A graphite_instance send_list N/A N/A metric 1 timestamp 1 N/A N/A N/A self assertEqual N/A 1.00000 response True N/A N/A N/A self assertEqual N/A N/A response endswith 1
 True N/A test_send_list_metric_value_timestamp N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix test N/A response N/A N/A graphite_instance send_list N/A N/A metric 1 1 N/A N/A N/A self assertEqual N/A 1.00000 response True N/A N/A N/A self assertEqual N/A N/A response endswith 1
 True N/A test_send_list_metric_value_timestamp_2 N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix test system_name N/A response N/A N/A graphite_instance send_list N/A N/A metric 1 1 N/A metric 1 2 N/A N/A N/A self assertEqual N/A test.metric 1.000000 1 response True N/A N/A N/A self assertEqual N/A test.metric 1.000000 2 response True N/A test_send_list_metric_value_timestamp_3 N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix test system_name N/A response N/A N/A graphite_instance send_list N/A N/A metric 1 1 N/A metric 2 N/A N/A N/A self assertEqual N/A test.metric 1.000000 1 response True N/A N/A N/A self assertEqual N/A test.metric 2.000000 2 response True N/A test_send_list_metric_value_timestamp_default N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix test system_name bar N/A response N/A N/A graphite_instance send_list N/A N/A metric 1 1 N/A metric 2 timestamp 4 N/A N/A N/A self assertEqual N/A test.bar.metric 1.000000 1 response True N/A N/A N/A self assertEqual N/A test.bar.metric 2.000000 4 response True N/A test_send_list_metric_value_timestamp_default_2 N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix test system_name foo N/A N/A c addr N/A N/A N/A self server accept N/A response N/A N/A graphite_instance send_list N/A N/A metric 1 N/A metric 2 2 timestamp 4 N/A N/A N/A self assertEqual N/A test.foo.metric 1.000000 4 response True N/A N/A N/A self assertEqual N/A test.foo.metric 2.000000 2 response True N/A sent_on_socket N/A N/A c recv 69 N/A N/A N/A self assertEqual N/A test.foo.metric 1.000000 4 sent_on_socket True N/A N/A N/A self assertEqual N/A test.foo.metric 2.000000 2 sent_on_socket True N/A test_send_value_as_string N/A N/A self N/A N/A N/A graphite_instance N/A N/A graphitesend init prefix N/A response N/A N/A graphite_instance send metric 1 1 N/A N/A N/A self assertEqual N/A 1.00000 response True N/A response N/A N/A N/A self assertEqual N/A N/A response endswith 1
 True N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main