Module Expr Str ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareIn SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Assert CompareIn SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareIn SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareIn SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareNotIn SubscriptLoad NameLoad Index Str NameLoad Assert CompareNotIn SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareNotIn SubscriptLoad NameLoad Index Str NameLoad Assert CompareNotIn SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert UnaryOpNot CompareIn Str NameLoad Assert UnaryOpNot CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list
N/A N/A 
This module runs tests against Cisco IOS devices.

setup_module: setup variables for later use.

test_disable_paging: disable paging
test_ssh_connect: verify ssh connectivity
test_send_command: send a command
test_send_command_expect: send a command
test_base_prompt: test the base prompt
test_strip_prompt: test removing the prompt
test_strip_command: test stripping extraneous info after sending a command
test_normalize_linefeeds: ensure 
 is the only line termination character in output
test_clear_buffer: clear text buffer
test_enable_mode: verify enter enable mode
test_disconnect: cleanly disconnect the SSH session

 __future__ print_function N/A time test_disable_paging N/A N/A net_connect commands expected_responses N/A N/A N/A 
    Verify paging is disabled by looking for string after when paging would normally occur
     N/A multiple_line_output N/A N/A net_connect send_command_expect N/A commands N/A extended_output N/A N/A N/A expected_responses N/A multiple_line_output multiple_line_output N/A test_ssh_connect N/A N/A net_connect commands expected_responses N/A N/A N/A 
    Verify the connection was established successfully
     N/A show_version N/A N/A net_connect send_command_expect N/A commands N/A version N/A N/A N/A time sleep 1 N/A N/A N/A expected_responses N/A version_banner show_version N/A test_send_command N/A N/A net_connect commands expected_responses N/A N/A N/A 
    Verify a command can be sent down the channel successfully
     N/A N/A N/A time sleep 1 N/A N/A N/A net_connect clear_buffer N/A show_ip N/A N/A net_connect send_command N/A commands N/A basic N/A N/A N/A expected_responses N/A interface_ip show_ip N/A test_send_command_expect N/A N/A net_connect commands expected_responses N/A N/A N/A Verify a command can be sent down the channel successfully using _expect method. N/A N/A N/A time sleep 1 N/A N/A N/A net_connect clear_buffer N/A show_ip_alt N/A N/A net_connect send_command_expect N/A commands N/A basic N/A N/A N/A expected_responses N/A interface_ip show_ip_alt N/A test_base_prompt N/A N/A net_connect commands expected_responses N/A N/A N/A Verify the router prompt is detected correctly. N/A N/A N/A net_connect base_prompt N/A expected_responses N/A base_prompt N/A test_strip_prompt N/A N/A net_connect commands expected_responses N/A N/A N/A Ensure the router prompt is not in the command output. N/A show_ip N/A N/A net_connect send_command N/A commands N/A basic N/A show_ip_alt N/A N/A net_connect send_command_expect N/A commands N/A basic N/A N/A N/A expected_responses N/A base_prompt show_ip N/A N/A N/A expected_responses N/A base_prompt show_ip_alt N/A test_strip_command N/A N/A net_connect commands expected_responses N/A N/A N/A Ensure that the command that was executed does not show up in the command output. N/A show_ip N/A N/A net_connect send_command N/A commands N/A basic N/A show_ip_alt N/A N/A net_connect send_command_expect N/A commands N/A basic N/A N/A N/A commands N/A basic show_ip N/A N/A N/A commands N/A basic show_ip_alt N/A test_normalize_linefeeds N/A N/A net_connect commands expected_responses N/A N/A N/A Ensure no '
' sequences. N/A show_version N/A N/A net_connect send_command N/A commands N/A version N/A show_version_alt N/A N/A net_connect send_command_expect N/A commands N/A version N/A N/A N/A show_version N/A N/A N/A show_version_alt N/A test_clear_buffer N/A N/A net_connect commands expected_responses N/A N/A N/A Test that clearing the buffer works. N/A N/A N/A N/A net_connect remote_conn sendall N/A N/A commands N/A basic N/A N/A N/A time sleep 4 N/A N/A N/A net_connect clear_buffer N/A clear_buffer_check N/A N/A net_connect clear_buffer N/A N/A clear_buffer_check None N/A test_enable_mode N/A N/A net_connect commands expected_responses N/A N/A N/A 
    Test entering enable mode

    Catch exception for devices that don't support enable
     N/A N/A N/A N/A N/A net_connect enable N/A enable_prompt N/A N/A net_connect find_prompt N/A N/A enable_prompt N/A expected_responses N/A enable_prompt N/A N/A N/A AttributeError N/A N/A N/A True True N/A test_disconnect N/A N/A net_connect commands expected_responses N/A N/A N/A Terminate the SSH session. N/A N/A N/A net_connect disconnect N/A