コード例 #1
0
 def test_get_mac_addresses(self):
     ssh = MockSSH([
         (
             "show chassis mac-addresses",
             JUNIPER_GET_MAC_ADDRESSES_SAMPLE,
         ),
     ])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['AABBCCDD0001', 'AABBCCDD0002'],
     )
コード例 #2
0
ファイル: test_ssh_juniper.py プロジェクト: 4i60r/ralph
 def test_get_mac_addresses(self):
     ssh = MockSSH([
         (
             "show chassis mac-addresses",
             JUNIPER_GET_MAC_ADDRESSES_SAMPLE,
         ),
     ])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['AABBCCDD0001', 'AABBCCDD0002'],
     )
コード例 #3
0
ファイル: test_ssh_juniper.py プロジェクト: alberto-g/ralph
 def test_get_mac_addresses(self):
     ssh = MockSSH([
         (
             "show chassis mac-addresses",
             JUNIPER_GET_MAC_ADDRESSES_SAMPLE,
         ),
     ])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['aa:bb:cc:dd:00:01', 'aa:bb:cc:dd:00:02'],
     )
コード例 #4
0
ファイル: test_ssh_juniper.py プロジェクト: lmzopq/ralph
 def test_get_mac_addresses(self):
     ssh = MockSSH([
         (
             "show chassis mac-addresses",
             JUNIPER_GET_MAC_ADDRESSES_SAMPLE,
         ),
     ])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['aa:bb:cc:dd:00:01', 'aa:bb:cc:dd:00:02'],
     )