Re: [Twisted-Python] Re: How to write (network) integration tests with Twisted?

2009-01-26 Thread Alessio Pace
Hi all, thanks your suggestions are very helpfull and I managed to have something resembling an integration test using Trial :-) Indeed the HTML version does not work for me either but the document still remains helpfull. So, is this documentation something going to be published sooner or later (

Re: [Twisted-Python] Twisted Sprint in February

2009-01-26 Thread Christopher Armstrong
On Mon, Jan 26, 2009 at 8:15 PM, wrote: > On 26 Jan, 11:10 pm, exar...@divmod.com wrote: >> >> I'd like to organize another Twisted sprint in Cambridge, MA in February. > > Thanks for putting it together! >> >> Which weekend in February would work best for people interested in >> attending? > > I

Re: [Twisted-Python] Twisted Sprint in February

2009-01-26 Thread glyph
On 26 Jan, 11:10 pm, exar...@divmod.com wrote: I'd like to organize another Twisted sprint in Cambridge, MA in February. Thanks for putting it together! Which weekend in February would work best for people interested in attending? I'd like to recommend the 7th. _

[Twisted-Python] Twisted Sprint in February

2009-01-26 Thread Jean-Paul Calderone
Hello All, I'd like to organize another Twisted sprint in Cambridge, MA in February. As with previous sprints, this is an all day event, most likely hosted at the Divmod office in Porter Square, for Twisted hacking. The two topics which have been raised thus far for this sprint are documentation

[Twisted-Python] Re: How to write (network) integration tests with Twisted?

2009-01-26 Thread Martin Geisler
Alessio Pace writes: > I would like to put in my suite of tests some integration tests which > deal with running some exchange of messages among 2 endpoints (bound > locally on the same machine on 2 different ports). > > I noticed (and read afterwards..) that I can't run()/stop() the > reactor mu

RE: [Twisted-Python] RE: Write into a persistent connection befor estopping

2009-01-26 Thread Jean-Paul Calderone
On Mon, 26 Jan 2009 17:07:23 +0100, "Boeuf, Jean-Francois" wrote: [snip] I'm Ok with that but it is no more than test sample code. The server does write periodically the connection but doesn't send "Connection closed because of server shutdown" whereas the onStop method is correctly called!

RE: [Twisted-Python] RE: Write into a persistent connection befor estopping

2009-01-26 Thread Boeuf, Jean-Francois
> -Message d'origine- > De : twisted-python-boun...@twistedmatrix.com > [mailto:twisted-python-boun...@twistedmatrix.com] De la part > de Jean-Paul Calderone > Envoyé : lundi 26 janvier 2009 16:23 > À : Twisted general discussion > Objet : Re: [Twisted-Python] RE: Write into a persiste

Re: [Twisted-Python] Truncated exception message for reactor instance

2009-01-26 Thread Jean-Paul Calderone
On Fri, 23 Jan 2009 13:17:32 -0500, Kangkook Jee wrote: Hi all I'm a Twisted newbie and I have a question about exception handling of Twisted framework. Whenever I got some exception raised from somewhere, I got truncated exception message like this. >>>Traceback (most recent call last):

Re: [Twisted-Python] A Java protocol on Twisted?

2009-01-26 Thread Jean-Paul Calderone
On Thu, 22 Jan 2009 09:14:48 +0100, Alessio Pace wrote: Hi, recently I was asked if it would be possible to plug a Java protocol in a Twisted-based P2P library I'm working on. Up to now this heterogenous languages integration was not a concern, but apparently the possibility to write an high l

Re: [Twisted-Python] How to write (network) integration tests with Twisted?

2009-01-26 Thread Phil Christensen
On Jan 26, 2009, at 8:00 AM, Alessio Pace wrote: The point is that I must assure multiple test classes have their test methods run within an active reactor. So somewhere a reactor.run() has to be called.. Necessarily, if I want that my tests battery to terminate, a reactor.stop() must be inv

Re: [Twisted-Python] RE: Write into a persistent connection before stopping

2009-01-26 Thread Jean-Paul Calderone
On Mon, 26 Jan 2009 16:12:57 +0100, "Boeuf, Jean-Francois" wrote: Hi, As i didn't get any answer to my problem i writed a little test code to reproduce it (I can't divulgate the production code, and then it would be to much complicated to expose the matter). You can just run it using twistd -y

[Twisted-Python] RE: Write into a persistent connection before stopping

2009-01-26 Thread Boeuf, Jean-Francois
Hi, As i didn't get any answer to my problem i writed a little test code to reproduce it (I can't divulgate the production code, and then it would be to much complicated to expose the matter). You can just run it using twistd -y test.py and then connect to the 8080 tcp port with a browser. As we c

Re: [Twisted-Python] How to write (network) integration tests with Twisted?

2009-01-26 Thread Alessio Pace
On Mon, Jan 26, 2009 at 12:09 PM, Drew Smathers wrote: > On Mon, Jan 26, 2009 at 4:02 PM, Alessio Pace > wrote: > > Hi, > > > > I would like to put in my suite of tests some integration tests which > deal > > with running some exchange of messages among 2 endpoints (bound locally > on > > the sam

Re: [Twisted-Python] How to write (network) integration tests with Twisted?

2009-01-26 Thread Drew Smathers
On Mon, Jan 26, 2009 at 4:02 PM, Alessio Pace wrote: > Hi, > > I would like to put in my suite of tests some integration tests which deal > with running some exchange of messages among 2 endpoints (bound locally on > the same machine on 2 different ports). > Trial allows you to return a Deferred,

[Twisted-Python] About twistedmatrix.com design license

2009-01-26 Thread Pierre Bourdon
Hello, I would like to reuse parts of the twistedmatrix.com design for my own Trac powered project, and would like to know about its license. I asked huwshimi as he is the design creator, and he answered me the Twisted team was the design copyright owner. Would it be possible to release the desig

[Twisted-Python] How to write (network) integration tests with Twisted?

2009-01-26 Thread Alessio Pace
Hi, I would like to put in my suite of tests some integration tests which deal with running some exchange of messages among 2 endpoints (bound locally on the same machine on 2 different ports). I noticed (and read afterwards..) that I can't run()/stop() the reactor multiple times, so I was wonder