def test_publish(self): c = Channel(None, None, {}) expect(mock(c, 'basic').publish).args('arg1', 'arg2', foo='bar') c.publish('arg1', 'arg2', foo='bar')
def test_publish(self): c = Channel(None,None) expect( c.basic.publish ).args( 'arg1', 'arg2', foo='bar' ) c.publish( 'arg1', 'arg2', foo='bar' )
def test_publish(self): c = Channel(None, None, {}) expect(mock(c, "basic").publish).args("arg1", "arg2", foo="bar") c.publish("arg1", "arg2", foo="bar")
def test_publish(self): c = Channel(None, None) expect(c.basic.publish).args('arg1', 'arg2', foo='bar') c.publish('arg1', 'arg2', foo='bar')