def test_completes_cycle(self):
     c = Connection('amqp://a;amqp://b;amqp://c')
     self.assertFalse(c.completes_cycle(0))
     self.assertFalse(c.completes_cycle(1))
     self.assertTrue(c.completes_cycle(2))
示例#2
0
 def test_completes_cycle(self):
     c = Connection('amqp://a;amqp://b;amqp://c')
     self.assertFalse(c.completes_cycle(0))
     self.assertFalse(c.completes_cycle(1))
     self.assertTrue(c.completes_cycle(2))
 def test_completes_cycle_no_cycle(self):
     c = Connection('amqp://')
     self.assertTrue(c.completes_cycle(0))
     self.assertTrue(c.completes_cycle(1))
示例#4
0
 def test_completes_cycle_no_cycle(self):
     c = Connection('amqp://')
     self.assertTrue(c.completes_cycle(0))
     self.assertTrue(c.completes_cycle(1))
示例#5
0
 def test_completes_cycle(self):
     c = Connection('amqp://a;amqp://b;amqp://c')
     assert not c.completes_cycle(0)
     assert not c.completes_cycle(1)
     assert c.completes_cycle(2)
示例#6
0
 def test_completes_cycle_no_cycle(self):
     c = Connection('amqp://')
     assert c.completes_cycle(0)
     assert c.completes_cycle(1)
示例#7
0
 def test_completes_cycle(self):
     c = Connection('amqp://a;amqp://b;amqp://c')
     assert not c.completes_cycle(0)
     assert not c.completes_cycle(1)
     assert c.completes_cycle(2)
示例#8
0
 def test_completes_cycle_no_cycle(self):
     c = Connection('amqp://')
     assert c.completes_cycle(0)
     assert c.completes_cycle(1)