diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 10:19:40 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-07 10:19:40 (GMT) |
commit | e66bb9692977c66ffcbe9af64642ab5977879a9a (patch) | |
tree | 34b129aa8f035d9aa69bcc382286dc32482b3567 /Lib/test/test_uuid.py | |
parent | 8e92f5727414815fce9a12ded1acfb7e13037e85 (diff) | |
download | cpython-e66bb9692977c66ffcbe9af64642ab5977879a9a.zip cpython-e66bb9692977c66ffcbe9af64642ab5977879a9a.tar.gz cpython-e66bb9692977c66ffcbe9af64642ab5977879a9a.tar.bz2 |
Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat.
Based on patch by Aivars KalvÄns.
Diffstat (limited to 'Lib/test/test_uuid.py')
-rw-r--r-- | Lib/test/test_uuid.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py index 7264808..10105b0 100644 --- a/Lib/test/test_uuid.py +++ b/Lib/test/test_uuid.py @@ -319,6 +319,24 @@ class TestUUID(unittest.TestCase): if node is not None: self.check_node(node, 'ifconfig') + @unittest.skipUnless(os.name == 'posix', 'requires Posix') + def test_arp_getnode(self): + node = uuid._arp_getnode() + if node is not None: + self.check_node(node, 'arp') + + @unittest.skipUnless(os.name == 'posix', 'requires Posix') + def test_lanscan_getnode(self): + node = uuid._lanscan_getnode() + if node is not None: + self.check_node(node, 'lanscan') + + @unittest.skipUnless(os.name == 'posix', 'requires Posix') + def test_netstat_getnode(self): + node = uuid._netstat_getnode() + if node is not None: + self.check_node(node, 'netstat') + @unittest.skipUnless(os.name == 'nt', 'requires Windows') def test_ipconfig_getnode(self): node = uuid._ipconfig_getnode() |