Re: [Twisted-Python] Avoiding network when testing Perspective Broker

2012-10-26 Thread Glyph
On Oct 26, 2012, at 7:16 AM, Itamar Turner-Trauring wrote: > > > On Thu, Oct 25, 2012 at 6:32 PM, Glyph wrote: > > There are three (count them, three!) classes called "IOPump" in various > Twisted test-support modules. Please note that unlike the stuff in > proto_helpers these are not s

Re: [Twisted-Python] Avoiding network when testing Perspective Broker

2012-10-26 Thread Itamar Turner-Trauring
On Thu, Oct 25, 2012 at 6:32 PM, Glyph wrote: > There are three (count them, three!) classes called "IOPump" in various > Twisted test-support modules. Please note that *unlike the stuff in > proto_helpers these are not supported and will likely go away in a future > version of Twisted*. Howev

Re: [Twisted-Python] Avoiding network when testing Perspective Broker

2012-10-26 Thread Maxim Lacrima
Hi! Your replies are very encouraging. Thank you! > I'm curious, since we rarely get to see the positive impact of > documentation, and only hear about it when it didn't exist - did you > discover this testing style from > http://twistedmatrix.com/documents/current/core/howto/trial.html#auto5 ?

Re: [Twisted-Python] Avoiding network when testing Perspective Broker

2012-10-25 Thread Glyph
On Oct 25, 2012, at 2:22 PM, exar...@twistedmatrix.com wrote: > On 09:18 am, lacrima.ma...@gmail.com wrote: >> Hi! >> >> I am learning to develop TDD way. I want to create a server that > > Hooray! Yes, hooray! I wish that everyone did this. Sorry that you've encountered trouble; I very muc

Re: [Twisted-Python] Avoiding network when testing Perspective Broker

2012-10-25 Thread exarkun
On 09:18 am, lacrima.ma...@gmail.com wrote: >Hi! > >I am learning to develop TDD way. I want to create a server that Hooray! >understands PB protocol. Initially I thought it would be a good idea to >avoid real network connections in my tests, so I tried to use Yes, that's definitely what you want

[Twisted-Python] Avoiding network when testing Perspective Broker

2012-10-25 Thread Maxim Lacrima
Hi! I am learning to develop TDD way. I want to create a server that understands PB protocol. Initially I thought it would be a good idea to avoid real network connections in my tests, so I tried to use `proto_helpers.StringTransport`: -- import cStringIO from twisted.spread import pb fro