Beispiel #1
0
 def test_get_mac_addresses(self):
     ssh = MockSSH([(
         "/sbin/ip addr show | /bin/grep 'link/ether'",
         GET_MAC_ADDRESSES_RESULT,
     )])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['c8:2a:14:05:3d:53', 'e0:f8:47:24:c9:e6'],
     )
Beispiel #2
0
 def test_get_mac_addresses(self):
     ssh = MockSSH([(
         "/sbin/ip addr show | /bin/grep 'link/ether'",
         GET_MAC_ADDRESSES_RESULT,
     )])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['C82A14053D53', 'E0F84724C9E6'],
     )
Beispiel #3
0
 def test_get_mac_addresses(self):
     ssh = MockSSH([
         (
             "/sbin/ip addr show | /bin/grep 'link/ether'",
             GET_MAC_ADDRESSES_RESULT,
         )
     ])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['c8:2a:14:05:3d:53', 'e0:f8:47:24:c9:e6'],
     )
Beispiel #4
0
 def test_get_mac_addresses(self):
     ssh = MockSSH([
         (
             "/sbin/ip addr show | /bin/grep 'link/ether'",
             GET_MAC_ADDRESSES_RESULT,
         )
     ])
     self.assertEqual(
         _get_mac_addresses(ssh),
         ['C82A14053D53', 'E0F84724C9E6'],
     )