test_netmiko_autodetect.py 368 B

123456789101112
  1. #!/usr/bin/env python
  2. from __future__ import print_function
  3. from __future__ import unicode_literals
  4. import time
  5. def test_ssh_connect(ssh_autodetect):
  6. """Verify the connection was established successfully."""
  7. net_conn, real_device_type = ssh_autodetect
  8. device_type = net_conn.autodetect()
  9. print(device_type)
  10. assert device_type == real_device_type