Module Expr Str Import alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num With Call AttributeLoad NameLoad attr Str keyword NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A Tests for the State Class N/A mock N/A N/A N/A unittest2 unittest N/A N/A N/A ImportError N/A N/A unittest rejected state TestState N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _obj N/A N/A state State N/A test_set_state_invalid_value N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A N/A self _obj set_state 9999 N/A test_set_state_expected_assignment N/A N/A self N/A N/A N/A N/A self state N/A N/A self _obj STATE_IDLE N/A N/A N/A N/A self _obj set_state N/A N/A self _obj STATE_CONNECTING N/A N/A N/A self assertEqual N/A N/A self _obj state N/A N/A self _obj STATE_CONNECTING N/A test_set_state_state_start N/A N/A self N/A N/A N/A N/A self state N/A N/A self _obj STATE_IDLE N/A value 86400 N/A N/A N/A mock patch time.time return_value value N/A N/A N/A N/A N/A self _obj set_state N/A N/A self _obj STATE_CONNECTING N/A N/A N/A self assertEqual N/A N/A self _obj state_start value N/A test_state_initializing_desc N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_INITIALIZING N/A N/A N/A self assertEqual N/A N/A self _obj state_description N/A N/A N/A self _obj STATES N/A N/A N/A self _obj STATE_INITIALIZING N/A test_state_connecting_desc N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_CONNECTING N/A N/A N/A self assertEqual N/A N/A self _obj state_description N/A N/A N/A self _obj STATES N/A N/A N/A self _obj STATE_CONNECTING N/A test_state_idle_desc N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_IDLE N/A N/A N/A self assertEqual N/A N/A self _obj state_description N/A N/A N/A self _obj STATES N/A N/A N/A self _obj STATE_IDLE N/A test_state_active_desc N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_ACTIVE N/A N/A N/A self assertEqual N/A N/A self _obj state_description N/A N/A N/A self _obj STATES N/A N/A N/A self _obj STATE_ACTIVE N/A test_state_stop_requested_desc N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOP_REQUESTED N/A N/A N/A self assertEqual N/A N/A self _obj state_description N/A N/A N/A self _obj STATES N/A N/A N/A self _obj STATE_STOP_REQUESTED N/A test_state_shutting_down_desc N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_SHUTTING_DOWN N/A N/A N/A self assertEqual N/A N/A self _obj state_description N/A N/A N/A self _obj STATES N/A N/A N/A self _obj STATE_SHUTTING_DOWN N/A test_state_stopped_desc N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOPPED N/A N/A N/A self assertEqual N/A N/A self _obj state_description N/A N/A N/A self _obj STATES N/A N/A N/A self _obj STATE_STOPPED N/A test_is_idle_state_initializing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_INITIALIZING N/A N/A N/A self assertFalse N/A N/A self _obj is_idle N/A test_is_idle_state_connecting N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_CONNECTING N/A N/A N/A self assertFalse N/A N/A self _obj is_idle N/A test_is_idle_state_idle N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_IDLE N/A N/A N/A self assertTrue N/A N/A self _obj is_idle N/A test_is_idle_state_processing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_ACTIVE N/A N/A N/A self assertFalse N/A N/A self _obj is_idle N/A test_is_idle_state_stop_requested N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOP_REQUESTED N/A N/A N/A self assertFalse N/A N/A self _obj is_idle N/A test_is_idle_state_shutting_down N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_SHUTTING_DOWN N/A N/A N/A self assertFalse N/A N/A self _obj is_idle N/A test_is_idle_state_stopped N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOPPED N/A N/A N/A self assertFalse N/A N/A self _obj is_idle N/A test_is_running_state_initializing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_INITIALIZING N/A N/A N/A self assertFalse N/A N/A self _obj is_running N/A test_is_running_state_connecting N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_CONNECTING N/A N/A N/A self assertFalse N/A N/A self _obj is_running N/A test_is_running_state_idle N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_IDLE N/A N/A N/A self assertTrue N/A N/A self _obj is_running N/A test_is_running_state_processing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_ACTIVE N/A N/A N/A self assertTrue N/A N/A self _obj is_running N/A test_is_running_state_stop_requested N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOP_REQUESTED N/A N/A N/A self assertFalse N/A N/A self _obj is_running N/A test_is_running_state_shutting_down N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_SHUTTING_DOWN N/A N/A N/A self assertFalse N/A N/A self _obj is_running N/A test_is_running_state_stopped N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOPPED N/A N/A N/A self assertFalse N/A N/A self _obj is_running N/A test_is_shutting_down_state_initializing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_INITIALIZING N/A N/A N/A self assertFalse N/A N/A self _obj is_shutting_down N/A test_is_shutting_down_state_connecting N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_CONNECTING N/A N/A N/A self assertFalse N/A N/A self _obj is_shutting_down N/A test_is_shutting_down_state_idle N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_IDLE N/A N/A N/A self assertFalse N/A N/A self _obj is_shutting_down N/A test_is_shutting_down_state_processing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_ACTIVE N/A N/A N/A self assertFalse N/A N/A self _obj is_shutting_down N/A test_is_shutting_down_state_stop_requested N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOP_REQUESTED N/A N/A N/A self assertFalse N/A N/A self _obj is_shutting_down N/A test_is_shutting_down_state_shutting_down N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_SHUTTING_DOWN N/A N/A N/A self assertTrue N/A N/A self _obj is_shutting_down N/A test_is_shutting_down_state_stopped N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOPPED N/A N/A N/A self assertFalse N/A N/A self _obj is_shutting_down N/A test_is_stopped_state_initializing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_INITIALIZING N/A N/A N/A self assertFalse N/A N/A self _obj is_stopped N/A test_is_stopped_state_connecting N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_CONNECTING N/A N/A N/A self assertFalse N/A N/A self _obj is_stopped N/A test_is_stopped_state_idle N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_IDLE N/A N/A N/A self assertFalse N/A N/A self _obj is_stopped N/A test_is_stopped_state_processing N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_ACTIVE N/A N/A N/A self assertFalse N/A N/A self _obj is_stopped N/A test_is_stopped_state_stop_requested N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_STOP_REQUESTED N/A N/A N/A self assertFalse N/A N/A self _obj is_stopped N/A test_is_stopped_state_shutting_down N/A N/A self N/A N/A N/A N/A N/A self _obj state N/A N/A self _obj STATE_SHUTTING_DOWN N/A N/A N/A self assertFalse N/A N/A self _obj is_stopped N/A N/A