Migrates Apex to Python
[apex.git] / apex / tests / test_apex_ip_utils.py
similarity index 94%
rename from tests/test_apex_ip_utils.py
rename to apex/tests/test_apex_ip_utils.py
index e5e84b6..04a1b2b 100644 (file)
@@ -7,27 +7,24 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-import re
 import ipaddress
+import re
+from ipaddress import IPv4Address
+from ipaddress import ip_network
 
-from apex.ip_utils import IPUtilsException
-from apex.ip_utils import get_interface
-from apex.ip_utils import find_gateway
-from apex.ip_utils import get_ip
-from apex.ip_utils import get_ip_range
-from apex.ip_utils import _validate_ip_range
-
-from nose.tools import assert_true
-from nose.tools import assert_false
 from nose.tools import assert_equal
-from nose.tools import assert_raises
+from nose.tools import assert_false
 from nose.tools import assert_is_instance
+from nose.tools import assert_raises
 from nose.tools import assert_regexp_matches
+from nose.tools import assert_true
 
-from ipaddress import IPv4Address
-from ipaddress import IPv6Address
-from ipaddress import ip_network
-
+from apex.network.ip_utils import IPUtilsException
+from apex.network.ip_utils import _validate_ip_range
+from apex.network.ip_utils import find_gateway
+from apex.network.ip_utils import get_interface
+from apex.network.ip_utils import get_ip
+from apex.network.ip_utils import get_ip_range
 
 ip4_pattern = re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}')
 ip4_range_pattern = re.compile('\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3},\d{1,'