Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A orchestra.tests.helpers OrchestraTestCase orchestra.bots.staffbot StaffBot orchestra.bots.tests.fixtures get_mock_slack_data StaffBotTest N/A OrchestraTestCase N/A test_commands N/A N/A self N/A N/A N/A 
        Ensure that the bot can handle the following commands:
        /staffbot staff <task_id>
        /staffbot restaff <task_id> <username>

        This test only validates that the commands are processed, other
        tests verify the functionality of the command execution.
         N/A bot N/A StaffBot N/A mock_slack_data N/A get_mock_slack_data N/A N/A mock_slack_data N/A text staff 5 N/A response N/A N/A bot dispatch mock_slack_data N/A N/A N/A self assertFalse N/A N/A bot default_error_text N/A N/A response get text N/A N/A mock_slack_data N/A text restaff 5 username N/A response N/A N/A bot dispatch mock_slack_data N/A N/A N/A self assertFalse N/A N/A bot default_error_text N/A N/A response get text N/A N/A mock_slack_data N/A text invalid command N/A response N/A N/A bot dispatch mock_slack_data N/A N/A N/A self assertTrue N/A N/A bot default_error_text N/A N/A response get text N/A test_staff_command N/A N/A self N/A N/A N/A 
        Test that the staffing logic is properly executed for the
        staff command.
         N/A bot N/A StaffBot N/A mock_slack_data N/A get_mock_slack_data N/A N/A mock_slack_data N/A text staff 5 N/A response N/A N/A bot dispatch mock_slack_data N/A N/A N/A self assertEqual N/A N/A response get text Staffed task 5! N/A N/A mock_slack_data N/A text staff N/A response N/A N/A bot dispatch mock_slack_data N/A N/A N/A self assertTrue N/A N/A bot default_error_text N/A N/A response get text N/A test_restaff_command N/A N/A self N/A N/A N/A 
        Test that the restaffing logic is properly executed for the
        restaff command.
         N/A bot N/A StaffBot N/A mock_slack_data N/A get_mock_slack_data N/A N/A mock_slack_data N/A text restaff 5 username N/A response N/A N/A bot dispatch mock_slack_data N/A N/A N/A self assertEqual N/A N/A response get text Restaffed task 5 for username! N/A N/A mock_slack_data N/A text restaff 5 N/A response N/A N/A bot dispatch mock_slack_data N/A N/A N/A self assertTrue N/A N/A bot default_error_text N/A N/A response get text N/A N/A