コード例 #1
0
ファイル: test_device.py プロジェクト: tyooyen/py-junos-eznc
 def test_device_re_name_setter(self):
     localdev = Device(host='1.1.1.1',
                       user='******',
                       password='******',
                       gather_facts=False)
     with self.assertRaises(RuntimeError):
         localdev.re_name = 'foo'
コード例 #2
0
ファイル: test_device.py プロジェクト: yggdr/py-junos-eznc
 def test_device_re_name_setter(self):
     localdev = Device(host="1.1.1.1",
                       user="******",
                       password="******",
                       gather_facts=False)
     with self.assertRaises(RuntimeError):
         localdev.re_name = "foo"
コード例 #3
0
ファイル: test_device.py プロジェクト: ydnath/py-junos-eznc
 def test_device_re_name_setter(self):
     localdev = Device(host='1.1.1.1', user='******', password='******',
                       gather_facts=False)
     with self.assertRaises(RuntimeError):
         localdev.re_name = 'foo'