Пример #1
0
 def test_publish(self):
     c = Channel(None, None, {})
     expect(mock(c, 'basic').publish).args('arg1', 'arg2', foo='bar')
     c.publish('arg1', 'arg2', foo='bar')
Пример #2
0
 def test_publish(self):
     c = Channel(None, None, {})
     expect(mock(c, 'basic').publish).args('arg1', 'arg2', foo='bar')
     c.publish('arg1', 'arg2', foo='bar')
Пример #3
0
 def test_publish(self):
   c = Channel(None,None)
   expect( c.basic.publish ).args( 'arg1', 'arg2', foo='bar' )
   c.publish( 'arg1', 'arg2', foo='bar' )
Пример #4
0
 def test_publish(self):
     c = Channel(None, None, {})
     expect(mock(c, "basic").publish).args("arg1", "arg2", foo="bar")
     c.publish("arg1", "arg2", foo="bar")
Пример #5
0
 def test_publish(self):
     c = Channel(None, None)
     expect(c.basic.publish).args('arg1', 'arg2', foo='bar')
     c.publish('arg1', 'arg2', foo='bar')