#NEWLINE# def test_config_with_correct_address_config_ipv4_query_3( tmpdir ) : #NEWLINE# #INDENT# p = tmpdir . mkdir ( 'conf' ) . join ( 'dispatch.conf' ) #NEWLINE# p . write ( 'address=/example.com/1.1.1.1' ) #NEWLINE# d = DispatchResolver ( str ( p . realpath ( ) ) , servers = [ ( '127.0.0.2' , 53 ) ] ) #NEWLINE# r = d . _matchAddress ( b'something.something.example.com' , d . _aRecords ) #NEWLINE# assert ( r [ 0 ] . payload . dottedQuad ( ) == '1.1.1.1' )