[Python-modules-commits] [python-pika] 11/15: Fix the channel tests
Jan Dittberner
jandd at moszumanska.debian.org
Wed Dec 30 13:39:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
jandd pushed a commit to branch master
in repository python-pika.
commit fd5e31cdae7cbaf9fb73a8c5c772fc2a17adea6d
Author: Gavin M. Roy <gavinr at aweber.com>
Date: Wed Nov 4 17:08:32 2015 -0500
Fix the channel tests
---
tests/unit/channel_tests.py | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/tests/unit/channel_tests.py b/tests/unit/channel_tests.py
index 0ae9317..a80996a 100644
--- a/tests/unit/channel_tests.py
+++ b/tests/unit/channel_tests.py
@@ -841,27 +841,28 @@ class ChannelTests(unittest.TestCase):
def test_add_callbacks_basic_cancel_empty_added(self):
self.obj._add_callbacks()
- self.obj.callbacks.add.assert_any_calls(self.obj.channel_number,
- spec.Basic.Cancel,
- self.obj._on_getempty, False)
+ self.obj.callbacks.add.assert_any_call(self.obj.channel_number,
+ spec.Basic.Cancel,
+ self.obj._on_cancel, False)
def test_add_callbacks_basic_get_empty_added(self):
self.obj._add_callbacks()
- self.obj.callbacks.add.assert_any_calls(self.obj.channel_number,
- spec.Basic.GetEmpty,
- self.obj._on_getempty, False)
+ print(self.obj.callbacks.add.__dict__)
+ self.obj.callbacks.add.assert_any_call(self.obj.channel_number,
+ spec.Basic.GetEmpty,
+ self.obj._on_getempty, False)
def test_add_callbacks_channel_close_added(self):
self.obj._add_callbacks()
- self.obj.callbacks.add.assert_any_calls(self.obj.channel_number,
- spec.Channel.Close,
- self.obj._on_getempty, False)
+ self.obj.callbacks.add.assert_any_call(self.obj.channel_number,
+ spec.Channel.Close,
+ self.obj._on_close, True)
def test_add_callbacks_channel_flow_added(self):
self.obj._add_callbacks()
- self.obj.callbacks.add.assert_any_calls(self.obj.channel_number,
- spec.Channel.Flow,
- self.obj._on_getempty, False)
+ self.obj.callbacks.add.assert_any_call(self.obj.channel_number,
+ spec.Channel.Flow,
+ self.obj._on_flow, False)
def test_cleanup(self):
self.obj._cleanup()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pika.git
More information about the Python-modules-commits
mailing list