'Test code should invoke this method after causing C{listen} to be
invoked in order to fire the L{Deferred} previously returned from
C{listen}.'

def startedListening(self):

    self.result.callback(self.port)
