Re: [Twisted-Python] Help with trial test failure

2013-08-07 Thread Benjamin BERTRAND
Le 7 août 2013 à 04:42, Piper Masden a écrit : > On Tue, Aug 6, 2013 at 2:33 PM, Benjamin BERTRAND wrote: > > I guess it's possible to use a synthetic transport, but that wouldn't help > much without a "fake" redis server. > That would indeed be nice to have for testing. > > I actually just

Re: [Twisted-Python] Help with trial test failure

2013-08-06 Thread Piper Masden
On Tue, Aug 6, 2013 at 2:33 PM, Benjamin BERTRAND wrote: > > I guess it's possible to use a synthetic transport, but that wouldn't help > much without a "fake" redis server. > That would indeed be nice to have for testing. > > I actually just found a dummy txredis client that implements everythin

Re: [Twisted-Python] Help with trial test failure

2013-08-06 Thread Benjamin BERTRAND
Le 6 août 2013 à 08:28, Glyph a écrit : > > On Aug 5, 2013, at 2:09 AM, Benjamin BERTRAND wrote: > >> That's why the inlineCallbacks solves the problem. When I yield on the >> self.server.dataReceived, I wait for the deferred in the publish methods to >> fire and everything is clean when I

Re: [Twisted-Python] Help with trial test failure

2013-08-05 Thread Glyph
On Aug 5, 2013, at 2:09 AM, Benjamin BERTRAND wrote: > That's why the inlineCallbacks solves the problem. When I yield on the > self.server.dataReceived, I wait for the deferred in the publish methods to > fire and everything is clean when I close the connection. > > Is there another way to d

Re: [Twisted-Python] Help with trial test failure

2013-08-05 Thread Benjamin Bertrand
On Sun, Aug 4, 2013 at 7:55 PM, Itamar Turner-Trauring wrote: > On 08/04/2013 10:25 AM, Benjamin BERTRAND wrote: > >> Hi, >> >> I'm trying to write a simple gateway to receive messages using a specific >> protocol and publish/store them using txredis. >> I wrote a small example that seems to work.

Re: [Twisted-Python] Help with trial test failure

2013-08-04 Thread Benjamin BERTRAND
Le 4 août 2013 à 21:55, Itamar Turner-Trauring a écrit : > On 08/04/2013 10:25 AM, Benjamin BERTRAND wrote: >> Hi, >> >> I'm trying to write a simple gateway to receive messages using a specific >> protocol and publish/store them using txredis. >> I wrote a small example that seems to work. >>

Re: [Twisted-Python] Help with trial test failure

2013-08-04 Thread Itamar Turner-Trauring
On 08/04/2013 10:25 AM, Benjamin BERTRAND wrote: Hi, I'm trying to write a simple gateway to receive messages using a specific protocol and publish/store them using txredis. I wrote a small example that seems to work. But the small test I wrote fails: $ trial gateway/test gateway.test.test_exa

[Twisted-Python] Help with trial test failure

2013-08-04 Thread Benjamin BERTRAND
Hi, I'm trying to write a simple gateway to receive messages using a specific protocol and publish/store them using txredis. I wrote a small example that seems to work. But the small test I wrote fails: $ trial gateway/test gateway.test.test_example GatewayServiceTestCase test_messageRecei