Re: [Twisted-Python] Unit testing AMP responder method registration

2013-12-04 Thread Laurens Van Houtven
On Wed, Dec 4, 2013 at 9:02 AM, wrote: > https://bazaar.launchpad.net/~game- hackers/game/trunk/view/head:/ > game/test/test_network.py#L418 > Thanks! I'll see how I can incorporate this. It does seem like the obvious test. Right now this is more spread out in my tests: I currently test the loc

Re: [Twisted-Python] Unit testing AMP responder method registration

2013-12-04 Thread exarkun
On 3 Dec, 01:19 pm, _...@lvh.io wrote: Hi! I'm trying to write code using TDD and AMP. I'm trying to figure out how to write a unit test for: @MyCommand.responder Specifically, I would assume that test: 1. Tests that the responder locator has a responder for MyCommand; 2. That responder mat

[Twisted-Python] Unit testing AMP responder method registration

2013-12-03 Thread Laurens Van Houtven
Hi! I'm trying to write code using TDD and AMP. I'm trying to figure out how to write a unit test for: @MyCommand.responder Specifically, I would assume that test: 1. Tests that the responder locator has a responder for MyCommand; 2. That responder matches the decorated method (1) is easy, (2)