IPSet([IP('0.0.0.0/1'), IP('128.0.0.0/1')]) results in IPSet([IP('0.0.0.0/0')]) 0.0.0.0/0 is meant to be a negative test case here and hence becomes a mismatch.