<s> '''<STR_LIT>''' <EOL> import unittest <EOL> from nose . plugins . attrib import attr <EOL> from jnpr . junos import Device <EOL> @ attr ( '<STR_LIT>' ) <EOL> class TestDeviceSsh ( unittest . TestCase ) : <EOL> def tearDown ( self ) : <EOL> self . dev . close ( ) <EOL> def test_device_open_default_key ( self ) : <EOL> self . dev = Device ( '<STR_LIT>' ) <EOL> self . dev . open ( ) <EOL> self . assertEqual ( self . dev . connected , True ) <EOL> def test_device_open_key_pass ( self ) : <EOL> self . dev = Device ( host = '<STR_LIT>' , ssh_private_key_file = '<STR_LIT>' , passwd = '<STR_LIT:password>' ) <EOL> self . dev . open ( ) <EOL> self . assertEqual ( self . dev . connected , True ) </s>
