コード例 #1
0
ファイル: channel_test.py プロジェクト: widgital/haigha
    def test_publish_synchronous(self):
        c = Channel(None, None, {})
        expect(mock(c, 'tx').select)
        expect(mock(c, 'basic').publish).args('arg1', 'arg2', foo='bar')
        expect(c.tx.commit).args(cb='a_cb')

        c.publish_synchronous('arg1', 'arg2', foo='bar', cb='a_cb')
コード例 #2
0
ファイル: channel_test.py プロジェクト: liorn/haigha
    def test_publish_synchronous(self):
        c = Channel(None, None, {})
        expect(mock(c, 'tx').select)
        expect(mock(c, 'basic').publish).args('arg1', 'arg2', foo='bar')
        expect(c.tx.commit).args(cb='a_cb')

        c.publish_synchronous('arg1', 'arg2', foo='bar', cb='a_cb')
コード例 #3
0
ファイル: channel_test.py プロジェクト: bkjones/haigha
    def test_publish_synchronous(self):
        c = Channel(None, None, {})
        expect(mock(c, "tx").select)
        expect(mock(c, "basic").publish).args("arg1", "arg2", foo="bar")
        expect(c.tx.commit).args(cb="a_cb")

        c.publish_synchronous("arg1", "arg2", foo="bar", cb="a_cb")