Merge lp:~free.ekanayaka/txamqp/synchronous-testing-helpers into lp:txamqp
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Esteve Fernandez | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~free.ekanayaka/txamqp/synchronous-testing-helpers | ||||
Merge into: | lp:txamqp | ||||
Diff against target: |
355 lines (+270/-12) 6 files modified
src/txamqp/factory.py (+3/-8) src/txamqp/protocol.py (+4/-3) src/txamqp/spec.py (+6/-1) src/txamqp/test/test_factory.py (+8/-0) src/txamqp/test/test_testing.py (+52/-0) src/txamqp/testing.py (+197/-0) |
||||
To merge this branch: | bzr merge lp:~free.ekanayaka/txamqp/synchronous-testing-helpers | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Esteve Fernandez | Approve | ||
Review via email: mp+296293@code.launchpad.net |
Description of the change
This adds a new txamqp.
client = AMQClient(...)
transport = AMQPump()
transport.
channel = self.successRes
d = clientChannel.
transport.
self.assertTrue
The branch also fixes a small bug in txamqp.
It also moves the DEFAULT_SPEC constant from txamqp.factory to txamqp.spec
which seems a better fit.
Finally it makes AMQClient pass its clock to callLater, for easier synchronous testing.
Sorry, I seem to have missed this one. Looks great, thanks!