def test_ipv4_detect():
 assert (_is_ipv4_like('1.1.1.1') is True)
 assert (_is_ipv4_like('1.1.1.256') is True)
 assert (_is_ipv4_like('-1.1.1.1') is True)
 assert (_is_ipv4_like('1.1.1.hello') is False)
 assert (_is_ipv4_like('hello') is False)
 assert (_is_ipv4_like('-1.1.1') is False)
 assert (_is_ipv4_like('-1.1.1.') is False)

def test_ipv4_detect ( ) : assert ( _is_ipv4_like ( '1.1.1.1' ) is True ) assert ( _is_ipv4_like ( '1.1.1.256' ) is True ) assert ( _is_ipv4_like ( '-1.1.1.1' ) is True ) assert ( _is_ipv4_like ( '1.1.1.hello' ) is False ) assert ( _is_ipv4_like ( 'hello' ) is False ) assert ( _is_ipv4_like ( '-1.1.1' ) is False ) assert ( _is_ipv4_like ( '-1.1.1.' ) is False )
ipv4 lookalikes are not valid subdomaincallingformat names even though they otherwise follow the bucket naming rules .