diff options
author | Dan Radez <dradez@redhat.com> | 2016-07-01 18:01:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-07-01 18:01:24 +0000 |
commit | 9366d88b499d51369182c8fb04fa358ae6694844 (patch) | |
tree | 9ff2ef66ab095f04b283a495442988a33cb506d7 /tests/test_apex_ip_utils.py | |
parent | 4329294c99fd22b814aa8d7183e0e8de543ac5c5 (diff) | |
parent | 45fabbab6a4107df8a32f09045cf955afeb2e4ac (diff) |
Merge "Syntax updates and new tests"
Diffstat (limited to 'tests/test_apex_ip_utils.py')
-rw-r--r-- | tests/test_apex_ip_utils.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_apex_ip_utils.py b/tests/test_apex_ip_utils.py index dc3aadf7..60c8b2b8 100644 --- a/tests/test_apex_ip_utils.py +++ b/tests/test_apex_ip_utils.py @@ -60,9 +60,9 @@ class TestIpUtils(object): def test_get_interface(self): assert_equal(get_interface(''), None) assert_equal(get_interface('notreal'), None) - assert_is_instance(get_interface( - self.iface_name, - address_family=4), IPv4Address) + assert_is_instance(get_interface(self.iface_name, + address_family=4), + IPv4Address) # assert_is_instance(get_interface( # self.iface_name, # address_family=6), IPv6Address) @@ -93,8 +93,7 @@ class TestIpUtils(object): assert_regexp_matches(get_ip_range(interface=self.iface, end_offset=20, count=10), ip4_range_pattern) - @staticmethod - def test_get_ip_range_with_cidr(): + def test_get_ip_range_with_cidr(self): cidr = ip_network('10.10.10.0/24') assert_raises(IPUtilsException, get_ip_range, cidr=cidr) assert_regexp_matches(get_ip_range(cidr=cidr, start_offset=1, |