summaryrefslogtreecommitdiffstats
path: root/tests/python_coverage_ip_utils.py
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-06-08 15:12:20 -0400
committerDan Radez <dradez@redhat.com>2016-06-10 12:59:27 -0400
commit24171d4b3b3a94a64b34c8f70e90b4ae5a97ef92 (patch)
tree67c8d5d254f8d632fc02ffc32cbc08afac03c1f4 /tests/python_coverage_ip_utils.py
parentce4770e46df1792f80d27a279d7c6cef2d9af5e0 (diff)
converting apex ip_utils unit tests to nose
Change-Id: I54205d217807fd5499a71571ef8bed7c684fe944 Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'tests/python_coverage_ip_utils.py')
-rw-r--r--tests/python_coverage_ip_utils.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/python_coverage_ip_utils.py b/tests/python_coverage_ip_utils.py
deleted file mode 100644
index 35280c18..00000000
--- a/tests/python_coverage_ip_utils.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import sys
-from apex import ip_utils
-
-iface = ip_utils.get_interface(sys.argv[1])
-
-erroring_tests = (
- "ip_utils.get_interface('')",
- "ip_utils.get_interface('lo', address_family=0)",
- "ip_utils.get_interface('lo', address_family=6)",
- "ip_utils.get_interface('lo')",
- "ip_utils.get_ip_range()",
- "ip_utils.get_ip_range(interface=iface)")
-
-for t in erroring_tests:
- try:
- eval(t)
- except:
- pass
-
-ip_utils.find_gateway(interface=iface)
-ip_utils.get_ip(1, cidr="10.10.10.0/24")
-ip_utils.get_ip(1, interface=iface)
-ip_utils.get_ip_range(interface=iface, start_offset=1, end_offset=20)
-ip_utils.get_ip_range(interface=iface, start_offset=1, count=10)
-ip_utils.get_ip_range(interface=iface, end_offset=20, count=10)