File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 3030 is_ipv6 ,
3131 is_magnet ,
3232 is_url ,
33+ osx_check ,
3334 parse_human_size ,
3435 windows_check ,
3536)
@@ -115,6 +116,10 @@ def test_is_interface_name(self):
115116 if windows_check ():
116117 assert not is_interface_name ('2001:db8:' )
117118 assert not is_interface_name ('{THIS0000-IS00-ONLY-FOR0-TESTING00000}' )
119+ elif osx_check ():
120+ assert is_interface_name ('lo0' )
121+ assert not is_interface_name ('127.0.0.1' )
122+ assert not is_interface_name ('eth01101' )
118123 else :
119124 assert is_interface_name ('lo' )
120125 assert not is_interface_name ('127.0.0.1' )
@@ -125,6 +130,11 @@ def test_is_interface(self):
125130 assert is_interface ('127.0.0.1' )
126131 assert not is_interface ('127' )
127132 assert not is_interface ('{THIS0000-IS00-ONLY-FOR0-TESTING00000}' )
133+ elif osx_check ():
134+ assert is_interface ('lo0' )
135+ assert is_interface ('127.0.0.1' )
136+ assert not is_interface ('127.' )
137+ assert not is_interface ('eth01101' )
128138 else :
129139 assert is_interface ('lo' )
130140 assert is_interface ('127.0.0.1' )
You can’t perform that action at this time.
0 commit comments