Skip to content

Commit

Permalink
Remove skip for IPv4Obj().network_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 10, 2023
1 parent df0a541 commit 3ca3eec
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_Ccp_Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,20 +226,17 @@ def testIPv4Obj_set_masklen01():
assert test_object.prefixlen == result_correct_masklen
assert test_object.prefixlength == result_correct_masklen

@pytest.mark.skip("IPv4Obj().network_offset fails for some reason. Python cannot find the method")
def testIPv4Obj_network_offset():
test_object = IPv4Obj("192.0.2.28/24")
assert test_object.masklength == 24
assert test_object.network_offset == 28

@pytest.mark.skip("IPv4Obj().network_offset fails for some reason. Python cannot find the method")
def testIPv4Obj_set_network_offset():
test_object = IPv4Obj("192.0.2.28/24")
# Change the last octet to be 200...
test_object.network_offset = 200
assert test_object == IPv4Obj("192.0.2.200/24")

@pytest.mark.skip("IPv4Obj().network_offset fails for some reason. Python cannot find the method")
def testIPv4Obj_attributes_01():
## Ensure that attributes are accessible and pass the smell test
test_object = IPv4Obj("1.0.0.1 255.255.255.0")
Expand Down Expand Up @@ -347,7 +344,6 @@ def test_ip_factory_inputs_02():
with pytest.raises(ipaddress.AddressValueError):
ip_factory("FE80:AAAA::DEAD:BEEEEEEEEEEF", stdlib=False, mode="auto_detect")

@pytest.mark.skip("IPv6Obj().network_offset fails for some reason. Python cannot find the method")
def testIPv6Obj_attributes_01():
## Ensure that attributes are accessible and pass the smell test
test_object = IPv6Obj("2001::dead:beef/64")
Expand Down Expand Up @@ -393,12 +389,10 @@ def testIPv6Obj_attributes_01():

assert getattr(test_object, attribute) == result_correct

@pytest.mark.skip("IPv6Obj().network_offset fails for some reason. Python cannot find the method")
def testIPv6Obj_network_offset_01():
test_object = IPv6Obj("2001::dead:beef/64")
assert test_object.network_offset == 3735928559

@pytest.mark.skip("IPv6Obj().network_offset fails for some reason. Python cannot find the method")
def testIPv6Obj_set_network_offset_01():
test_object = IPv6Obj("2001::dead:beef/64")
test_object.network_offset = 200
Expand Down

0 comments on commit 3ca3eec

Please sign in to comment.