Beispiel #1
0
 def test__deprecated_amqp_url(self):
     self.config(amqp_url='amqp://*****:*****@127.0.0.1:/')
     self.assertEqual(rpc._deprecated_amqp_url(),
                      'rabbit://*****:*****@127.0.0.1:5672/')
Beispiel #2
0
 def test__deprecated_amqp_url(self):
     self.config(amqp_url='amqp://*****:*****@127.0.0.1:/')
     self.assertEqual(rpc._deprecated_amqp_url(),
                      'rabbit://*****:*****@127.0.0.1:5672/')
Beispiel #3
0
 def test__deprecated_amqp_url_not_set(self):
     self.config(amqp_url=None)
     self.assertIsNone(rpc._deprecated_amqp_url())
Beispiel #4
0
 def test__deprecated_amqp_url_not_set(self):
     self.config(amqp_url=None)
     self.assertIsNone(rpc._deprecated_amqp_url())