<s> from simpledns . util import is_ipv4_address , is_ipv6_address , is_address_validate <EOL> def test_is_ipv4_address_with_correct_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_ipv4_address ( addr ) <EOL> assert r == True <EOL> def test_is_ipv4_address_with_incorrect_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_ipv4_address ( addr ) <EOL> assert r == False <EOL> def test_is_ipv6_address_with_correct_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_ipv6_address ( addr ) <EOL> assert r == True <EOL> def test_is_ipv6_address_with_incorrect_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_ipv6_address ( addr ) <EOL> assert r == False <EOL> def test_is_address_validate_with_correct_ipv4_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_address_validate ( addr ) <EOL> assert r == True <EOL> def test_is_address_validate_with_incorrect_ipv4_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_address_validate ( addr ) <EOL> assert r == False <EOL> def test_is_address_validate_with_correct_ipv6_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_address_validate ( addr ) <EOL> assert r == True <EOL> def test_is_address_validate_with_incorrect_ipv6_address ( ) : <EOL> addr = "<STR_LIT>" <EOL> r = is_address_validate ( addr ) <EOL> assert r == False </s>
