Esempio n. 1
0
 def test__normalize_mac_unicode(self):
     mac_raw = u"0A:1B-2C-3D:4F"
     mac_clean = ssh._normalize_mac(mac_raw)
     self.assertEqual("0a1b2c3d4f", mac_clean)
Esempio n. 2
0
 def test__normalize_mac(self):
     mac_raw = "0A:1B-2C-3D:4F"
     mac_clean = ssh._normalize_mac(mac_raw)
     self.assertEqual(mac_clean, "0a1b2c3d4f")
Esempio n. 3
0
 def test__normalize_mac_unicode(self):
     mac_raw = u"0A:1B-2C-3D:4F"
     mac_clean = ssh._normalize_mac(mac_raw)
     self.assertEqual("0a1b2c3d4f", mac_clean)
Esempio n. 4
0
 def test__normalize_mac(self):
     mac_raw = "0A:1B-2C-3D:4F"
     mac_clean = ssh._normalize_mac(mac_raw)
     self.assertEqual(mac_clean, "0a1b2c3d4f")
     self.mox.VerifyAll()
Esempio n. 5
0
 def test__normalize_mac_string(self):
     mac_raw = "0A:1B-2C-3D:4F"
     mac_clean = ssh._normalize_mac(mac_raw)
     self.assertEqual(mac_clean, "0a1b2c3d4f")