'L{ConnectedDatagramPort} does not call the deprecated C{loseConnection}
in L{ConnectedDatagramPort.connectionFailed}.'

def test_connectionFailedDoesntCallLoseConnection(self):

    def loseConnection():
        '\n                                                Dummy    C{loseConnection}    method.    C{loseConnection}    is    deprecated    and\n                                                should    not    get    called.\n                                                '
        self.fail('loseConnection    is    deprecated    and    should    not    get    called.')
    port = unix.ConnectedDatagramPort(None, ClientProto())
    port.loseConnection = loseConnection
    port.connectionFailed('goodbye')
