'If L{ftp.DTPFactory.buildProtocol} is called after the timeout
specified by L{ftp.DTPFactory.setTimeout} has elapsed, L{None} is
returned.'

def test_connectionAfterTimeout(self):

    d = self.assertFailure(self.factory.deferred, ftp.PortConnectionError)
    self.factory.setTimeout(10)
    self.reactor.advance(10)
    self.assertIsNone(self.factory.buildProtocol(None))
    return d
