#NEWLINE# def test_config_with_incorrect_server_address_config( tmpdir ) : #NEWLINE# #INDENT# p = tmpdir . mkdir ( 'conf' ) . join ( 'dispatch.conf' ) #NEWLINE# p . write ( 'server=/example.com/127.0.0.' ) #NEWLINE# d = DispatchResolver ( str ( p . realpath ( ) ) , servers = [ ( '127.0.0.2' , 53 ) ] ) #NEWLINE# queries = [ dns . Query ( b'example.com' , dns . A , dns . IN ) ] #NEWLINE# addr = d . pickServer ( queries ) #NEWLINE# assert ( d == ( '127.0.0.2' , 53 ) )