def METHOD_NAME(self, ip: IPAddress) -> IPState:
    """ return the state of an IP """
    for state in IPState:
        if self.test_ip_state(ip, state):
            return state
    raise AssertionError("IP %s not found in any states" % ip)