txfake/fake_connection.py
def accept_connection(self):
        """
        Accept a pending connection.
        """
        assert self.pending, "Connection is not pending."
        self.server_protocol = self.server.server_factory.buildProtocol(None)
        self._accept_d.callback(
            FakeServerProtocolWrapper(self, self.server_protocol))
        return self.await_connected()
def accept_connection(self):
        """
        Accept a pending connection.
        """
        assert self.pending, "Connection is not pending."
        self.server_protocol = self.server.server_factory.buildProtocol(None)
        self._accept_d.callback(
            FakeServerProtocolWrapper(self, self.server_protocol))
        return self.await_connected()
def accept_connection ( self ) : assert self . pending , "Connection is not pending." self . server_protocol = self . server . server_factory . buildProtocol ( None ) self . _accept_d . callback ( FakeServerProtocolWrapper ( self , self . server_protocol ) ) return self . await_connected ( )
Accept a pending connection.
Accept a pending connection .